Spent some time hacking with @trpcio + @nextjs 13
- π Use tRPC in RSC &/or in client
- βΎ Made infinite scrolling with the first page being RSC SSR'd
- π Hacked next-auth to work
It's ugly & code is quite messy, don't judge
github.com/trpc/next-13 / rsc.trpc.io/
For the DX to be great, I'd like to have the same root "thing" to query tRPC so it's not `rsc.post.list.use()` / `trpc.post.list.useQuery`....
Unsure how to do that, feel like it might need some custom transpilation π€
Spent some time hacking with @trpcio + @nextjs 13
- π Use tRPC in RSC &/or in client
- βΎ Made infinite scrolling with the first page being RSC SSR'd
- π Hacked next-auth to work
It's ugly & code is quite messy, don't judge
github.com/trpc/next-13 / rsc.trpc.io/
Some impressions:
- RSC is a game-changer, but quite hard to grok the mental model between server/client concerns with RSC & how to structure it
- Error handling needs work - why can't I deal with server errors on the server
- Not played with "app layouts" much, but looks cool
Hundreds of hours. Over 100 beta + alpha versions. Multiple blood sacrifices to the TypeScript gods. And we're finally nearing the end of the beginning: the @trpcio v10 Release Candidate is out!
tRPC version 10 should *really* be viewed as tRPC version 2, I was just very strict about semver the first 6 months of tRPC (whilst very few people were using it)
This is the first real *big* change to tRPC since its creation.
Here's an RFC for a proposed API design change which we aim to be the last one of @trpcio v10. Comment if you've played with V10 and have an opinion βΊ
github.com/trpc/trpc/discussβ¦
Hopefully not a mistake to invite twitter to comment on this lol
If you already use v10, don't worry, if we do this, we'll share a regex to search and replace this across your codebase.
Can someone help me write or structure a blog post? The main thing holding back the RC of @trpcio 10 is my inability to write the announcement post π€¦ββοΈ
The whole marketing thing has never been my strong suit π₯² I'm glad it hasn't held back the growth too much
πππππππππππππ
@trpcio just passed 13,000 stars on @github!!! ππ
πππππππππππππ