MCPcopy Index your code
hub / github.com/caseywebdev/react-list / captureCommitPhaseErrorOnRoot

Function captureCommitPhaseErrorOnRoot

docs/index.js:14700–14706  ·  view source on GitHub ↗
(rootFiber, sourceFiber, error)

Source from the content-addressed store, hash-verified

14698 return !1;
14699}
14700function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
14701 sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
14702 sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
14703 rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);
14704 null !== rootFiber &&
14705 (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
14706}
14707function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
14708 if (3 === sourceFiber.tag)
14709 captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);

Callers 1

captureCommitPhaseErrorFunction · 0.85

Calls 5

createRootErrorUpdateFunction · 0.85
enqueueUpdateFunction · 0.85
markRootUpdated$1Function · 0.85
ensureRootIsScheduledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…