Skip to content
Discussion options

You must be logged in to vote

I think this is already possible today using React Query with Suspense + react-ssr-prepass, which is a more performant implementation of a prepass render step than Apollo's one (at least last I checked). 🎉

When React 18 is released, while it wont have official support for Suspense data fetching, I think it might work out of the box with React Query as long as you are not streaming the response (or at least, as long as you don't hydrate the markup until you have the full response). If it does not work out of the box, I think that's where we should spend our effort instead of adding a prepass step, which is usually terrible for SSR performance.

Also, even with Suspenseful SSR, for the best …

Replies: 4 comments 18 replies

Comment options

You must be logged in to vote
4 replies
@zsolt-dev
Comment options

@TkDodo
Comment options

@zsolt-dev
Comment options

@TkDodo
Comment options

Comment options

You must be logged in to vote
10 replies
@Uttu316
Comment options

@TkDodo
Comment options

@zsolt-dev
Comment options

@PrescottJRynewicz
Comment options

@zsolt-dev
Comment options

Answer selected by zsolt-dev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@TkDodo
Comment options

@dosco
Comment options

@Ephem
Comment options

Ephem Jun 20, 2022
Collaborator

@dosco
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
7 participants