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

Malmö, Sweden
Alex / KATT 🐱 retweeted
Replaced hundreds of lines of API wrappers, controllers, redux reducers, cache, and retry mechanisms with a few lines of tRPC and React Query. Seriously, this is by far the best experience I've had building web apps. Here's the stack: Vite, React, tRPC, React Query, and Generouted.
45
34
622
187,920
Alex / KATT 🐱 retweeted
Zup @hackernews 👀
3
5
143
20,046
pure appreciation tweet: @jullerino is awesome. that's it.
4
2
73
7,003
Today I used the `form` attribute (for the first time ever 😅) - developer.mozilla.org/en-US/… Now I can place my submit buttons anywhere instead of always nested within the `<form>` it's great and makes complex layout-code way less messy
2
6
102
45,339
- Hook calling @hookform's `useForm()` and adds `useId()` on it - `<Form>`-component takes the result of this hook as a prop and adds a unique id of the form - `<SubmitButton>` can optionally take this as a prop to use instead of `useFormContext()` for the loading state
3
13
4,484
Alex / KATT 🐱 retweeted
Took some time today to do some maintenance in create-t3-turbo, and while I was at it I updated to use the app directory with the new react query package for streaming. Check it out, it’s pretty neat. github.com/t3-oss/create-t3-…
📢 Yesterday, we released an experimental react-query-nextjs package for the app directory. Wrap your app in the <ReactQueryStreamedHydration> component to enjoy direct useQuery fetches on the server with suspense, which streams to the client 🎉 Example: tanstack.com/query/v5/docs/r…
10
7
90
32,281
Alex / KATT 🐱 retweeted
📢 Yesterday, we released an experimental react-query-nextjs package for the app directory. Wrap your app in the <ReactQueryStreamedHydration> component to enjoy direct useQuery fetches on the server with suspense, which streams to the client 🎉 Example: tanstack.com/query/v5/docs/r…
39
169
1,173
204,481
Building a CLI-tool. What's a good lib for pretty terminal logging/progress indicators etc (that can also be flagged away with log levels)?
9
25
10,050
Alex / KATT 🐱 retweeted
After witnessing "peak RSC frustration Twitter week", I sat down on the weekend and tried to write down my take on this - as a blog post. phryneas.de/react-server-com… More balanced. No unexplained frustration in 280 characters. And some constructive ideas.
8
55
289
97,280
Talked to a friend the other day who works at a company where some tech leads are lobbying that the solution to their recruiting problems is to migrate their whole tech stack from Vue to React 🤦‍♂️
What happened to the "choose boring tech" movement?
17
4
106
66,287
Great idea, rewrite a full working product that works well and is making millions in a technology wherein few, if any, in the team has strong expertise because it's sexier(?)
3
29
4,725
yooo! Is anyone using tRPC with React Native who wants to beta test a feature that can help you track API changes? @ me on Discord (trpc.io/discord) :)
6
2
34
10,867
Me and @jullerino are hacking on automatic hydration for server-rendered "use client"-components component by generating a `<script>`-tag on the server that gets picked up by the browser

ALT This Fine GIF

12
2
90
48,657
Alex / KATT 🐱 retweeted
Acme Corp is coming together pretty nicely. Always a joy to work with @shadcn UI and thanks to @jamesperkins my fully custom @clerk flows are moving along!
16
15
236
45,872
Alex / KATT 🐱 retweeted
many ways to support fellow open source projects: become a paying customer, contribute, share, upvote, invest!
1
15
2,367
💯
if I was doing coding interviews I would let the candidate do literally whatever the fck they wanted to do to get the answer, as long as the code runs and they have somewhat of a grasp of how it works google, stack overflow, chatgpt, github, name it if someone is fast, correct, and efficient with these tools they they should be considered at even a higher level than someone sitting around trying to answer and solve every answer on their own
13
3,501