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

Function resetStack

code/third-party/public/app.js:12026–12045  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12024 }
12025
12026 function resetStack() {
12027 if (nextUnitOfWork !== null) {
12028 var interruptedWork = nextUnitOfWork['return'];
12029 while (interruptedWork !== null) {
12030 unwindInterruptedWork(interruptedWork);
12031 interruptedWork = interruptedWork['return'];
12032 }
12033 }
12034
12035 {
12036 ReactStrictModeWarnings.discardPendingWarnings();
12037 stack.checkThatStackIsEmpty();
12038 }
12039
12040 nextRoot = null;
12041 nextRenderExpirationTime = NoWork;
12042 nextUnitOfWork = null;
12043
12044 isRootReadyForCommit = false;
12045 }
12046
12047 function commitAllHostEffects() {
12048 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected