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

Function resetStack

code/communication/public/app.js:12828–12847  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12826 }
12827
12828 function resetStack() {
12829 if (nextUnitOfWork !== null) {
12830 var interruptedWork = nextUnitOfWork['return'];
12831 while (interruptedWork !== null) {
12832 unwindInterruptedWork(interruptedWork);
12833 interruptedWork = interruptedWork['return'];
12834 }
12835 }
12836
12837 {
12838 ReactStrictModeWarnings.discardPendingWarnings();
12839 stack.checkThatStackIsEmpty();
12840 }
12841
12842 nextRoot = null;
12843 nextRenderExpirationTime = NoWork;
12844 nextUnitOfWork = null;
12845
12846 isRootReadyForCommit = false;
12847 }
12848
12849 function commitAllHostEffects() {
12850 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected