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

Function emitModelChunk

packages/react-server/src/ReactFlightServer.js:4222–4226  ·  view source on GitHub ↗
(request: Request, id: number, json: string)

Source from the content-addressed store, hash-verified

4220}
4221
4222function emitModelChunk(request: Request, id: number, json: string): void {
4223 const row = id.toString(16) + ':' + json + '\n';
4224 const processedChunk = stringToChunk(row);
4225 request.completedRegularChunks.push(processedChunk);
4226}
4227
4228function emitDebugHaltChunk(request: Request, id: number): void {
4229 if (!__DEV__) {

Callers 2

emitChunkFunction · 0.85
retryTaskFunction · 0.85

Calls 3

stringToChunkFunction · 0.90
toStringMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected