TanStackT
TanStack12mo ago
6 replies
colossal-harlequin

help with understanding useSuspenseQuery

hey guys, I wanted to ask for help to understand the hook.

When used with trpc in a next app router app, It’s suggested that we prefetch on the server and use useSuspenseQuery in client but Ive noticed that the hook works even without prefetching, is something I am missing or?

Also if we use both prefetch and useSuspenseQuery and the query needs params, do we send them both in server component and the client too? feels like a duplicate job to do.

thanks for your time
Was this page helpful?