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

Function resetStack

code/composition/public/app.js:12931–12950  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12929 }
12930
12931 function resetStack() {
12932 if (nextUnitOfWork !== null) {
12933 var interruptedWork = nextUnitOfWork['return'];
12934 while (interruptedWork !== null) {
12935 unwindInterruptedWork(interruptedWork);
12936 interruptedWork = interruptedWork['return'];
12937 }
12938 }
12939
12940 {
12941 ReactStrictModeWarnings.discardPendingWarnings();
12942 stack.checkThatStackIsEmpty();
12943 }
12944
12945 nextRoot = null;
12946 nextRenderExpirationTime = NoWork;
12947 nextUnitOfWork = null;
12948
12949 isRootReadyForCommit = false;
12950 }
12951
12952 function commitAllHostEffects() {
12953 while (nextEffect !== null) {

Callers 2

renderRootFunction · 0.70
scheduleWorkImplFunction · 0.70

Calls 1

unwindInterruptedWorkFunction · 0.70

Tested by

no test coverage detected