next.js
Support resuming a complete HTML prerender that has dynamic flight data
#60865
Merged

Commits
  • app-render will now consider postponing in the RSC stream independent of SSR. this will fix a bug where an SSR prerender completes without postponing while the RSC render does postpone
    gnoff committed 2 years ago
  • Fixes a number of issues with the stream handling to make dynamic-data and resumes work. Adjusts some other APIs to make them a little easier to follow
    gnoff committed 2 years ago
  • Adds tests for the dynamic-data cases including cases that assert behavior when dynamic APIs are used but the postponed state comes from an unrelated call to postpone. Also asserts that server inserted HTML appears in the static prelude and resume streams where appropriate
    gnoff committed 2 years ago
  • Updates the way we encode postponed state to make collisions between Dynamic HTML and Dynamic Data cases impossible
    gnoff committed 2 years ago
  • removes concatStreams and fixes chainStreams to properly index streams and start piping immediately rather than in a microtask
    gnoff committed 2 years ago
Loading