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

Function resetStack

code/controlled-uncontrolled/public/app.js:12117–12136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12115 }
12116
12117 function resetStack() {
12118 if (nextUnitOfWork !== null) {
12119 var interruptedWork = nextUnitOfWork['return'];
12120 while (interruptedWork !== null) {
12121 unwindInterruptedWork(interruptedWork);
12122 interruptedWork = interruptedWork['return'];
12123 }
12124 }
12125
12126 {
12127 ReactStrictModeWarnings.discardPendingWarnings();
12128 stack.checkThatStackIsEmpty();
12129 }
12130
12131 nextRoot = null;
12132 nextRenderExpirationTime = NoWork;
12133 nextUnitOfWork = null;
12134
12135 isRootReadyForCommit = false;
12136 }
12137
12138 function commitAllHostEffects() {
12139 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected