Post

We just released our new TanStack Query adapter for @trpc.io powered by the `queryOptions` API. Codemod available (still a bit of a WIP but works quite well) for simple migration. Let us know what you think! trpc.io/blog/introdu...

trpc.ioIntroducing the new TanStack React Query integration | tRPCWe are excited to announce the new TanStack React Query integration for tRPC is now available on tRPC's next-release. Compared to our classic React Query Integration it's simpler and more TanStack Que...

6 reposts55 likes

Has something changed with how TRPCError is thrown? I tried it out with the new implementation, and it's breaking the app. Previously, I could extract the error and display it on my frontend. Documentation still reflecting the old way, so I thought may be the new method still needs to be updated.

This is awesome 🤩 I've never used tRPC in a serious project but I've admired from a distance for a long time, and always wondered how flexible the tanstack query integration was. This new API makes that crystal clear 🔥

This has been a crazy amount of work, including upstreaming many type safety enhancements to @tanstack.com query so that everybody can benefit! (Big thanks to @tkdodo.eu for all the help getting type enhancements in) Excited to see how people get on with the client!