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

Function resetWorkInProgressStack

docs/index.js:14078–14094  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14076 : !0;
14077}
14078function resetWorkInProgressStack() {
14079 if (null !== workInProgress) {
14080 if (0 === workInProgressSuspendedReason)
14081 var interruptedWork = workInProgress.return;
14082 else
14083 (interruptedWork = workInProgress),
14084 (lastContextDependency = currentlyRenderingFiber = null),
14085 resetHooksOnUnwind(interruptedWork),
14086 (thenableState$1 = null),
14087 (thenableIndexCounter$1 = 0),
14088 (interruptedWork = workInProgress);
14089 for (; null !== interruptedWork; )
14090 unwindInterruptedWork(interruptedWork.alternate, interruptedWork),
14091 (interruptedWork = interruptedWork.return);
14092 workInProgress = null;
14093 }
14094}
14095function prepareFreshStack(root, lanes) {
14096 root.finishedWork = null;
14097 root.finishedLanes = 0;

Callers 3

prepareFreshStackFunction · 0.85
renderRootSyncFunction · 0.85
renderRootConcurrentFunction · 0.85

Calls 3

resetHooksOnUnwindFunction · 0.85
unwindInterruptedWorkFunction · 0.85
resetContextDependenciesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…