MCPcopy
hub / github.com/facebook/react / flushSegmentContainer

Function flushSegmentContainer

packages/react-server/src/ReactFizzServer.js:5852–5866  ·  view source on GitHub ↗
(
  request: Request,
  destination: Destination,
  segment: Segment,
  hoistableState: HoistableState,
)

Source from the content-addressed store, hash-verified

5850}
5851
5852function flushSegmentContainer(
5853 request: Request,
5854 destination: Destination,
5855 segment: Segment,
5856 hoistableState: HoistableState,
5857): boolean {
5858 writeStartSegment(
5859 destination,
5860 request.renderState,
5861 segment.parentFormatContext,
5862 segment.id,
5863 );
5864 flushSegment(request, destination, segment, hoistableState);
5865 return writeEndSegment(destination, segment.parentFormatContext);
5866}
5867
5868function flushCompletedBoundary(
5869 request: Request,

Callers 1

Calls 3

writeStartSegmentFunction · 0.90
writeEndSegmentFunction · 0.90
flushSegmentFunction · 0.85

Tested by

no test coverage detected