👋 I'm Alex & I tweet about web dev stuff Creator of @trpcio, work @square, scout @a16z

Malmö, Sweden
We're very close to releasing support for FormData in mutations so you can do file uploads nicer (w/o base64 encoding 😅) & to support form submits w/o js enabled @s4chinraja has done some really solid work to decouple our request handling to not only handle JSON bodies
14
15
200
40,865
Adds some non-trivial boilerplate to setup if you want you want to use it... maybe it's time to make some of npm module that has opinionated defaults
4
39
5,808
Sneak peek
4
1
65
7,248
I really like where nextjs is going with the app dir stuff, I'm a ex-php guy who wrote my own php framework fifteen years ago in an eerily similar style to Remix/Nextjs stuff (I even had "action"-files using the PRG-pattern!) However, I mainly use React nextjs for *apps* [...]
11
1
169
72,745
I've tested it and I love most of it but it doesn't reaaally get the the UX and DX that I'm looking on some things that I know feel are non-negotiables of my web*apps*. I guess what I want is to to disable RSC and have streamed hydration of state
1
42
7,906
Just a stream of thoughts. Am I thinking about it wrong? Am I missing something?
7
29
8,755
`switch`-statements that don't suck: typescript-eslint.io/rules/s…
Replying to @TkDodo
I used to do that, now I just have this lint rule instead typescript-eslint.io/rules/s…
4
1
33
6,931
apparently, my Next.js-site crashes in Safari because I use `Array.prototype.at()` (developer.mozilla.org/en-US/…) I thought @nextjs would polyfill things like this (nextjs.org/docs/basic-featur…) -- what do I need to do?
8
56
19,677
Fixed by adding `import 'core-js/features/array/at' at in my `_app.tsx`
3
32
3,739
I cannot believe that all frameworks are stealing RPC
12
3
240
73,550
* this is a satirical multi-layered subtweet
3
60
6,789
Alex / KATT 🐱 retweeted
T3 is your best bet if you want to try out TRPC. It has everything you need to build that startup app of your dreams; NextAuth, Tailwind, Prisma. I'll show you how to use it to build, and deploy, a full CRUD app - youtu.be/J1gzN1SAhyM
5
16
221
35,335
Revisited my lil' thing that tries to make sure that the user is always on the latest version of the app The way I detect changes is that all tRPC response returns a request header with the commit hash which is used to signal that the next navigation should be a hard navigation
Is this a kosher way of detecting version changes in @nextjs and forcing a reload on the next navigation change? The goal is to turn any `<Link>` into an `<a>` if we have a new build. Full gist: gist.github.com/KATT/62f0020…
1
6
122
31,481
The next major of @trpcio's main "feature" will be removing the v9 interop support. It's a bit painful to support two parallel APIs and removing it will speed us up :) Current diff 👇
I feel like people would expect new features in a major version, but that's mostly not what it is about. I know it makes them "less exciting", but it's about cleaning up all the little "mistakes" that have amassed over time.
4
2
149
26,519
... & if you already upgraded to v10, or adopted after that came out, you can expect zero breaking changes
2
33
3,070