MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / resetStack

Function resetStack

code/new-context-api/public/app.js:12154–12173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12152 }
12153
12154 function resetStack() {
12155 if (nextUnitOfWork !== null) {
12156 var interruptedWork = nextUnitOfWork['return'];
12157 while (interruptedWork !== null) {
12158 unwindInterruptedWork(interruptedWork);
12159 interruptedWork = interruptedWork['return'];
12160 }
12161 }
12162
12163 {
12164 ReactStrictModeWarnings.discardPendingWarnings();
12165 stack.checkThatStackIsEmpty();
12166 }
12167
12168 nextRoot = null;
12169 nextRenderExpirationTime = NoWork;
12170 nextUnitOfWork = null;
12171
12172 isRootReadyForCommit = false;
12173 }
12174
12175 function commitAllHostEffects() {
12176 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected