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

Function resetStack

code/styling/public/app.js:12793–12812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12791 }
12792
12793 function resetStack() {
12794 if (nextUnitOfWork !== null) {
12795 var interruptedWork = nextUnitOfWork['return'];
12796 while (interruptedWork !== null) {
12797 unwindInterruptedWork(interruptedWork);
12798 interruptedWork = interruptedWork['return'];
12799 }
12800 }
12801
12802 {
12803 ReactStrictModeWarnings.discardPendingWarnings();
12804 stack.checkThatStackIsEmpty();
12805 }
12806
12807 nextRoot = null;
12808 nextRenderExpirationTime = NoWork;
12809 nextUnitOfWork = null;
12810
12811 isRootReadyForCommit = false;
12812 }
12813
12814 function commitAllHostEffects() {
12815 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected