James Hopgood
James Hopgood2mo ago

Recommended setup for tRPC + Tanstack Query Subscriptions

Hey there, I am already aware that there is a package for this: import { useSubscription } from "@trpc/tanstack-react-query"; but I am honestly a bit unsure how to use it properly with my setup and wondered if people had some boilerplate or docs on how to make use of this? My full setup is: NextJS frontend Hono API backend Clerk Front + Backend auth tRPC + Tanstack Query
1 Reply
ConfusedCompiler
I just created custom hooks around it. What are you having issues with specifically?

Did you find this page helpful?