Component Composition with useSuspenseQuery results in request waterfall #8537
-
Hi, I am creating an application and am using a single Suspense boundary for my whole page. I have multiple different components, each using 'useSuspenseQuery' hook for api requests. Following the official documentation, I am using : code example |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your code example should fire in parallel, except if you running on React |
Beta Was this translation helpful? Give feedback.
Oh I think next14 will use the React 19 canary versions (no matter which version of react you have specified!), so it’s possible that they have this exact suspense issue. I’d recommend updating next.
Also, using suspense during SSR without prefetching or our experimental streamed hydration means requests will run on the server, but won’t wind up in the client cache, so they have to run again on the client.