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

Function renderNextChunk

packages/react-server-dom-fb/src/ReactDOMServerFB.js:88–98  ·  view source on GitHub ↗
(stream: Stream)

Source from the content-addressed store, hash-verified

86}
87
88function renderNextChunk(stream: Stream): string {
89 const {request, destination} = stream;
90 performWork(request);
91 startFlowing(request, destination);
92 if (destination.fatal) {
93 throw destination.error;
94 }
95 const chunk = destination.buffer;
96 destination.buffer = '';
97 return chunk;
98}
99
100function hasFinished(stream: Stream): boolean {
101 return stream.destination.done;

Callers

nothing calls this directly

Calls 2

performWorkFunction · 0.90
startFlowingFunction · 0.90

Tested by

no test coverage detected