@@ -342,7 +342,7 @@ type Segment = {
342342 // The context that this segment was created in.
343343 parentFormatContext : FormatContext ,
344344 // If this segment represents a fallback, this is the content that will replace that fallback.
345- + boundary : null | SuspenseBoundary ,
345+ boundary : null | SuspenseBoundary ,
346346 // used to discern when text separator boundaries are needed
347347 lastPushedText : boolean ,
348348 textEmbedded : boolean ,
@@ -5681,6 +5681,10 @@ function flushSegment(
56815681 return flushSubtree ( request , destination , segment , hoistableState ) ;
56825682 }
56835683
5684+ // We're going to write the boundary. We don't need to maintain this reference since
5685+ // we might reflush this segment at a later time (if it aborts and we inlined) but
5686+ // we don't want to reflush the boundary
5687+ segment . boundary = null ;
56845688 boundary . parentFlushed = true ;
56855689 // This segment is a Suspense boundary. We need to decide whether to
56865690 // emit the content or the fallback now.
@@ -5952,7 +5956,7 @@ function flushPartiallyCompletedSegment(
59525956 segment : Segment ,
59535957) : boolean {
59545958 if ( segment . status === FLUSHED ) {
5955- // We've already flushed this inline.
5959+ // We've already flushed this inline
59565960 return true ;
59575961 }
59585962
0 commit comments