TanStackT
TanStackโ€ข4h agoโ€ข
3 replies
foolish-indigo

useSuspenseQuery is executed on the client

Hello I am using the useSuspenseQuery concept along with ReactQueryStreamedHydration wrapper from the docs with latest Next.js 16.

I don't have that large knowledge of the RSC, so I would like to ask for some detail about the fetching logic after reading the docs.

When I am using useSuspenseQuery along with the "use client" directive on the first page load the fetch will be executed on the server, but when I try to navigate to some pages, it will execute the fetch call on the client.

I would like to ask if this is correct behavior and if so, does it mean the only the first request is streamed and other client side page navigations are client side requests with client side rendering?

Thanks in advance! ๐Ÿ™
Was this page helpful?