tRCP can I subscribe to a query?
hi everyone!
is there a way of subscribing directly to a query and or invalidate a query directly from the tRCP router?
I am using create-t3-app + NextJs + Prisma (pg)
Thank you in advance!
1 Reply
Please research things with Google or going directly to the docs first:
tRPC Docs:
- https://trpc.io/docs/v9/invalidateQueries
- https://trpc.io/docs/v9/subscriptions
Query Docs (what tRPC uses under the hood)
- https://tanstack.com/query/latest/docs/react/guides/query-invalidation?from=reactQueryV3&original=https%3A%2F%2Freact-query-v3.tanstack.com%2Fguides%2Fquery-invalidation