-
Hello. I wanted to use streaming with useSuspenseQuery.
This component is a client component where
This is a server component that prefetches query for the
This component wraps the 2024-04-05.9.17.59.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you can do it like that, but with streaming, you don't need prefetching if you use the Have a look at the example: https://github.com/TanStack/query/tree/main/examples/react/nextjs-suspense-streaming |
Beta Was this translation helpful? Give feedback.
you can do it like that, but with streaming, you don't need prefetching if you use the
ReactQueryStreamedHydration
component.Have a look at the example:
https://github.com/TanStack/query/tree/main/examples/react/nextjs-suspense-streaming