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

Function resetStack

code/redux/public/app.js:13044–13063  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13042 }
13043
13044 function resetStack() {
13045 if (nextUnitOfWork !== null) {
13046 var interruptedWork = nextUnitOfWork['return'];
13047 while (interruptedWork !== null) {
13048 unwindInterruptedWork(interruptedWork);
13049 interruptedWork = interruptedWork['return'];
13050 }
13051 }
13052
13053 {
13054 ReactStrictModeWarnings.discardPendingWarnings();
13055 stack.checkThatStackIsEmpty();
13056 }
13057
13058 nextRoot = null;
13059 nextRenderExpirationTime = NoWork;
13060 nextUnitOfWork = null;
13061
13062 isRootReadyForCommit = false;
13063 }
13064
13065 function commitAllHostEffects() {
13066 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected