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

Function resetStack

code/higher-order-components/public/app.js:12787–12806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12785 }
12786
12787 function resetStack() {
12788 if (nextUnitOfWork !== null) {
12789 var interruptedWork = nextUnitOfWork['return'];
12790 while (interruptedWork !== null) {
12791 unwindInterruptedWork(interruptedWork);
12792 interruptedWork = interruptedWork['return'];
12793 }
12794 }
12795
12796 {
12797 ReactStrictModeWarnings.discardPendingWarnings();
12798 stack.checkThatStackIsEmpty();
12799 }
12800
12801 nextRoot = null;
12802 nextRenderExpirationTime = NoWork;
12803 nextUnitOfWork = null;
12804
12805 isRootReadyForCommit = false;
12806 }
12807
12808 function commitAllHostEffects() {
12809 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected