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

Function resetStack

code/dependency-injection/public/app.js:12886–12905  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12884 }
12885
12886 function resetStack() {
12887 if (nextUnitOfWork !== null) {
12888 var interruptedWork = nextUnitOfWork['return'];
12889 while (interruptedWork !== null) {
12890 unwindInterruptedWork(interruptedWork);
12891 interruptedWork = interruptedWork['return'];
12892 }
12893 }
12894
12895 {
12896 ReactStrictModeWarnings.discardPendingWarnings();
12897 stack.checkThatStackIsEmpty();
12898 }
12899
12900 nextRoot = null;
12901 nextRenderExpirationTime = NoWork;
12902 nextUnitOfWork = null;
12903
12904 isRootReadyForCommit = false;
12905 }
12906
12907 function commitAllHostEffects() {
12908 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected