MCPcopy Create free account
hub / github.com/plotly/dash / popTreeContext

Function popTreeContext

dash/deps/react-dom@18.3.1.js:12203–12224  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

12201 }
12202
12203 function popTreeContext(workInProgress) {
12204 // Restore the previous values.
12205 // This is a bit more complicated than other context-like modules in Fiber
12206 // because the same Fiber may appear on the stack multiple times and for
12207 // different reasons. We have to keep popping until the work-in-progress is
12208 // no longer at the top of the stack.
12209 while (workInProgress === treeForkProvider) {
12210 treeForkProvider = forkStack[--forkStackIndex];
12211 forkStack[forkStackIndex] = null;
12212 treeForkCount = forkStack[--forkStackIndex];
12213 forkStack[forkStackIndex] = null;
12214 }
12215
12216 while (workInProgress === treeContextProvider) {
12217 treeContextProvider = idStack[--idStackIndex];
12218 idStack[idStackIndex] = null;
12219 treeContextOverflow = idStack[--idStackIndex];
12220 idStack[idStackIndex] = null;
12221 treeContextId = idStack[--idStackIndex];
12222 idStack[idStackIndex] = null;
12223 }
12224 }
12225 function getSuspendedTreeContext() {
12226 warnIfNotHydrating();
12227

Callers 3

completeWorkFunction · 0.70
unwindWorkFunction · 0.70
unwindInterruptedWorkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…