MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / resetStack

Function resetStack

code/one-direction-data-flow/public/app.js:12666–12685  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12664 }
12665
12666 function resetStack() {
12667 if (nextUnitOfWork !== null) {
12668 var interruptedWork = nextUnitOfWork['return'];
12669 while (interruptedWork !== null) {
12670 unwindInterruptedWork(interruptedWork);
12671 interruptedWork = interruptedWork['return'];
12672 }
12673 }
12674
12675 {
12676 ReactStrictModeWarnings.discardPendingWarnings();
12677 stack.checkThatStackIsEmpty();
12678 }
12679
12680 nextRoot = null;
12681 nextRenderExpirationTime = NoWork;
12682 nextUnitOfWork = null;
12683
12684 isRootReadyForCommit = false;
12685 }
12686
12687 function commitAllHostEffects() {
12688 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected