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

Function logPostpone

packages/react-server/src/ReactFizzServer.js:1202–1216  ·  view source on GitHub ↗
(
  request: Request,
  reason: string,
  postponeInfo: ThrownInfo,
  debugTask: null | ConsoleTask,
)

Source from the content-addressed store, hash-verified

1200}
1201
1202function logPostpone(
1203 request: Request,
1204 reason: string,
1205 postponeInfo: ThrownInfo,
1206 debugTask: null | ConsoleTask,
1207): void {
1208 // If this callback errors, we intentionally let that error bubble up to become a fatal error
1209 // so that someone fixes the error reporting instead of hiding it.
1210 const onPostpone = request.onPostpone;
1211 if (__DEV__ && debugTask) {
1212 debugTask.run(onPostpone.bind(null, reason, postponeInfo));
1213 } else {
1214 onPostpone(reason, postponeInfo);
1215 }
1216}
1217
1218function logRecoverableError(
1219 request: Request,

Callers 7

renderSuspenseBoundaryFunction · 0.70
replaySuspenseBoundaryFunction · 0.70
injectPostponedHoleFunction · 0.70
erroredReplayFunction · 0.70
erroredTaskFunction · 0.70
abortTaskFunction · 0.70
retryRenderTaskFunction · 0.70

Calls 2

onPostponeFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected