Next.js · Senior · Question 34 of 75
Why is page data sometimes sent twice - in the HTML and in the RSC payload?
- ✓Correct answer: HTML is for fast painting, the payload is for hydration
- 2It's a bug that happens only in dev mode with Turbopack
- 3The second copy is a backup in case the network drops
Explanation
Client component props are serialized into the payload embedded in the page, even if the same data is already visible in the HTML. So large arrays passed to client components bloat the response. Pagination, passing minimal fields and rendering large static parts on the server help.