James HopgoodJ
tRPC4mo ago
2 replies
James Hopgood

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
Was this page helpful?