batshit
batshit copied to clipboard
useSuspenseQuery only fetches on client side
It seems like that when using the Tanstack Query hook useSuspenseQuery
it only fetches on client side and streaming actually never happens.
Would it not be possible to make an option in Batshit to use the cache
(https://react.dev/reference/react/cache) in React instead of the windowMs
so you know on serverside what need to be batched?
An example of streaming with Tanstack Query would be https://tanstack.com/query/latest/docs/framework/react/examples/nextjs-suspense-streaming