MCPcopy Index your code
hub / github.com/react/react / emitHintChunk

Function emitHintChunk

packages/react-server/src/ReactFlightServer.js:4205–4214  ·  view source on GitHub ↗
(
  request: Request,
  code: Code,
  model: HintModel<Code>,
)

Source from the content-addressed store, hash-verified

4203}
4204
4205function emitHintChunk<Code: HintCode>(
4206 request: Request,
4207 code: Code,
4208 model: HintModel<Code>,
4209): void {
4210 const json: string = stringify(model);
4211 const row = ':H' + code + json + '\n';
4212 const processedChunk = stringToChunk(row);
4213 request.completedHintChunks.push(processedChunk);
4214}
4215
4216function emitSymbolChunk(request: Request, id: number, name: string): void {
4217 const symbolReference = serializeSymbolReference(name);

Callers 1

emitHintFunction · 0.85

Calls 3

stringToChunkFunction · 0.90
stringifyFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected