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

Function forwardDebugInfoFromThenable

packages/react-server/src/ReactFlightServer.js:5319–5340  ·  view source on GitHub ↗
(
  request: Request,
  task: Task,
  thenable: Thenable<any>,
  owner: null | ReactComponentInfo, // DEV-only
  stack: null | Error, // DEV-only
)

Source from the content-addressed store, hash-verified

5317}
5318
5319function forwardDebugInfoFromThenable(
5320 request: Request,
5321 task: Task,
5322 thenable: Thenable<any>,
5323 owner: null | ReactComponentInfo, // DEV-only
5324 stack: null | Error, // DEV-only
5325): void {
5326 let debugInfo: ?ReactDebugInfo;
5327 if (__DEV__) {
5328 // If this came from Flight, forward any debug info into this new row.
5329 debugInfo = thenable._debugInfo;
5330 if (debugInfo) {
5331 forwardDebugInfo(request, task, debugInfo);
5332 }
5333 }
5334 if (enableProfilerTimer && enableAsyncDebugInfo) {
5335 const sequence = getAsyncSequenceFromPromise(thenable);
5336 if (sequence !== null) {
5337 emitAsyncSequence(request, task, sequence, debugInfo, owner, stack);
5338 }
5339 }
5340}
5341
5342function forwardDebugInfoFromCurrentContext(
5343 request: Request,

Callers 3

serializeThenableFunction · 0.85
renderFunctionComponentFunction · 0.85

Calls 3

forwardDebugInfoFunction · 0.85
emitAsyncSequenceFunction · 0.85

Tested by

no test coverage detected