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

Function outlineDebugModel

packages/react-server/src/ReactFlightServer.js:5168–5185  ·  view source on GitHub ↗
(
  request: Request,
  counter: {objectLimit: number},
  model: ReactClientValue,
)

Source from the content-addressed store, hash-verified

5166}
5167
5168function outlineDebugModel(
5169 request: Request,
5170 counter: {objectLimit: number},
5171 model: ReactClientValue,
5172): number {
5173 if (!__DEV__) {
5174 // These errors should never make it into a build so we don't need to encode them in codes.json
5175 // eslint-disable-next-line react-internal/prod-error-codes
5176 throw new Error(
5177 'outlineDebugModel should never be called in production mode. This is a bug in React.',
5178 );
5179 }
5180
5181 const id = request.nextChunkId++;
5182 request.pendingDebugChunks++;
5183 emitOutlinedDebugModelChunk(request, id, counter, model);
5184 return id;
5185}
5186
5187function emitConsoleChunk(
5188 request: Request,

Callers 7

renderClientElementFunction · 0.85
serializeDebugFormDataFunction · 0.85
serializeDebugMapFunction · 0.85
serializeDebugSetFunction · 0.85
serializeDebugErrorValueFunction · 0.85
outlineComponentInfoFunction · 0.85
renderDebugModelFunction · 0.85

Calls 1

Tested by

no test coverage detected