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

Malmö, Sweden
Alex / KATT 🐱 retweeted
hey @s4chinraja from @trpcio is going live with me. if you love open source, typescript, trpc, and me. BE HERE NOW! twitch.tv/trash_dev
5
7
27
Alex / KATT 🐱 retweeted
trpc-chrome is now stable & just released v0.1.0 🎉 Chrome extension support @trpcio 🧩 - Easy communication for web extensions. - Typesafe messaging between content & background scripts. - Ready for Manifest V3. github.com/jlalmes/trpc-chro…
4
13
165
Alex / KATT 🐱 retweeted
if anyone is interested @s4chinraja from @trpcio will be on stream with me this Friday to talk about open source and of course the trpc.io project guess i should use @pingdotgg for this?
6
26
Fwiw, this was not a dig on @mattpocockuk nor @housecor; their points were valid, I just wanted to extend it further ☺
1
1
And you can do this based on functions' return types and then use that type to have as an argument of another function Let the types flow typescriptlang.org/play?#cod…
6
1
24
Also, you can infer your types based on *real data* instead of explicitly defining them. typescriptlang.org/play?#cod…
'Prefer' is not strong enough here. In TypeScript, 'as' means 'I know more than you' - which is usually unsafe for beginners.
1
31
Alex / KATT 🐱 retweeted
Your client and server should agree on types! 🤝 Let's ditch type casting for simple-yet-robust validation across API endpoints with @trpcio 💪 #WhiteboardTheWeb edition 52
6
27
187
Would love to hear your take on this, @TkDodo! Maybe the ability of having a default non-overrideable onSuccess wrapper should live in react-query instead?
1
4
The normalized cache is one of the main thing I miss from graphql, but this makes me miss it a little bit less.
1
14
New lil' feature ✨ Do you find it annoying to invalidate specific queries on every mutation and keeping track of what should be invalidated? If so, maybe you want to always invalidate all queries automatically on any mutation. trpc.io/docs/v10/query-inval…
11
2
106
🥳 JOIN US in LONDON this NOVEMBER!✨ 2⃣5⃣➕ Hands-on Workshops 1⃣0⃣0⃣➕ Speakers Check out the website now to see what's lined up! ✅ Modern Frontends Live! 🌐 modernfrontends.live 📆 Nov 15-16 (Workshops) 📆 Nov 17-18 (Conf) 🌍 London
4
42
172
We use NODE_ENV for one thing in trpc, but that should be changed
11
A bit niche, but very helpful for that niche
4
Also cc @t3dotgg I think this could be good streaming content
1
4
Libraries shouldn't depend on the `process.env` or supply manual overrides for configuration if they do
9
1
81
hey @anthonyShewDev we need to upgrade the migration guide to include this. I managed to migrate my whole company's codebase to v10 in a few hours thanks to this. Likely much better than using interop mode for a lot of cases.
2
3
Saturday night. I have friends too I promise
4
140
it's a bit disruptive as it sort of forces everything to be done in one big go but it might be worth it
1
3
yo @zomars / @peer_rich I think this could/should be tried on cal
2
3
When we release the release candidate of @trpcio v10 (hopefully *very* soon), we might still do some minor breaking changes, but we will at least have those tracked in the release notes.
1
1
67