This pull request's diff hasn't been prepared yet. Log in with GitHub to have us prepare it for review.

[Fizz] Fix truncated prerender output under backpressure #37901

Merged
unstubbable opened 2:24pm on October 19, 2026 wanted to merge 72 Ξ” into facebook/react main from
hl/fix-fizz-prerender-truncation-on-back-pressure

Pull Request Overview

  • Opened on October 19, 2026
  • Status Merged
  • Commit count 2 with first commit October 19, 2026

Total Delta

72 Total Diff Delta

Open Days

Open 20 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Fraction of total time Business days Phase
 
0.0 days Authoring 1 commit before pull request opened for review
 
0.2 days Awaiting first review
Set up deploy tracking to begin tracking full PR start-to-deploy times

Total time for pull request 0.2 business days from first commit authored to merge
Deploy tracking has not been set up

Author avatar

[Fizz] Fix truncated prerender output under backpressure

An aborted prerender can finish all tasks while partial output remains queued. If a Node stream applies backpressure, Fizz can close it before it flushes the remaining boundaries. This bug predates #37876 and also affects initial prerenders.

Fizz now waits for partialBoundaries to empty before it closes the destination. The regression test forces backpressure with highWaterMark: 1 and verifies that push() returns false. Without the fix, the stream emits the first boundary's partial content and closes before it emits the second's.

Comments Threads Pending Resolution

Resolved Comment Threads

No resolved comments have been left on this PR.