Post
This will not only work in React Server Components, but soon you'll be able to apply the same streaming of GraphQL multipart responses to Remix, React Router and TanStack Start loaders. If you want to follow the PR and play with the demo: github.com/apollographq...
github.comimplement multipart streaming for `PreloadQuery` by phryneas · Pull Request #389 · apollographql/apollo-client-nextjsHere's the happy case (still without @defer):
https://apollo-git-6cd975-apollo-client-next-package-integration-tests.vercel.app/rsc/dynamic/PreloadQuery/queryRef-useReadQuery
Here we have a sim...
And because I'm not sure if I brought the point over: This is **one network request** from the RSC server to the GraphQL server, and you see data streaming in piece by piece **in the browser, in a Client Component**.
0 reposts3 likes
No replies yet.