Skip to content
Discussion options

You must be logged in to vote

You only need streaming if you want the server to start the non-critical work before the client hydrates, while still sending the initial shell early.

If you just render useSuspenseQuery on the client, that also works, but the sequence is different:

server sends shell -> browser hydrates -> query starts in browser

With React Router streaming, the sequence can be:

server starts query -> server sends shell/fallback -> deferred value resolves -> client receives streamed value

So streaming is mostly useful when you want to avoid waiting for all data before sending HTML, but you also do not want every non-critical request to start only after hydration.

About this part:

<Await resolve={comments…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@GitonioDev
Comment options

@sueun-dev
Comment options

@GitonioDev
Comment options

Comment options

You must be logged in to vote
1 reply
@GitonioDev
Comment options

Answer selected by GitonioDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants