5 Replies
react query supports suspense, just pass
{suspense: true} to the query:
but with tRPC ?
the example above is with tRPC, anything that react query can do tRPC can do
Yeah useQuery in trpc is literally calling from react query… the above example is in trpc syntax
Thanks for this response, it makes sense to me. However run into another issue when using
Suspense and either useSuspenseQuery or passing the {suspense: true option as you suggested.
Error:
This is the code I've got:
I can't use startTransition since I do not have access to the set method of the trpc hook AFAIK. Which is listed as a limitation in reacts docs