React · Senior · Question 8 of 75
How does streaming SSR (renderToPipeableStream) work?
- ✓Correct answer: HTML is sent in parts: the shell right away, Suspense content when ready
- 2The server waits for all data and sends HTML in one gzip-compressed response
- 3The server sends only JSON, and the HTML is assembled entirely on the client
Explanation
The server immediately sends the shell with fallbacks, and when the data inside a Suspense boundary is ready, it appends HTML to the stream plus a small script that puts it in place. A slow block no longer delays the whole page. Streaming in the Next.js App Router is built on this.