batshit icon indicating copy to clipboard operation
batshit copied to clipboard

useSuspenseQuery only fetches on client side

Open TommySorensen opened this issue 8 months ago • 2 comments

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

TommySorensen avatar Jun 06 '24 11:06 TommySorensen