Serializing Apollo cache for client-side hydration with Suspense SSR
Unanswered
Manx posted this in #help-forum
ManxOP
Hey folks! Anyone know what's the recommended way to serialize Apollo's client cache from SSR to client HTML with React 18 and useSuspenseQuery with Page Router?
In non-Suspense world, we previously would await getDataFromTree() and call cache.extract() after it. Now that we are in Suspense world, is there a way to know when all the queries has been resolved, but before the HTML document has been sent to the browser?
Related:
https://github.com/apollographql/apollo-client/issues/8365
In non-Suspense world, we previously would await getDataFromTree() and call cache.extract() after it. Now that we are in Suspense world, is there a way to know when all the queries has been resolved, but before the HTML document has been sent to the browser?
Related:
https://github.com/apollographql/apollo-client/issues/8365