next.js
a6249ccb - re-order CacheNodeSeedData to put containing segment first (#68847)

Commit
1 year ago
re-order CacheNodeSeedData to put containing segment first (#68847) The `CacheNodeSeedData` structure puts parallel routes (eg page segment data, and other parallel routes) before the containing segment data (eg the layout). When React serializes the RSC payload it'll handle the deeper tree first (parallel route) before the higher level things. In a PPR world this can lead to de-opts since we'll bail out of rendering when we detect dynamic access. This PR doesn't change any functionality, it just swaps the ordering of these two items so that the deeper tree is serialized after the layout / containing segment. Closes NDX-177
Author
Parents
Loading