MCPcopy Index your code
hub / github.com/microsoft/SandDance / unwindInterruptedWork

Function unwindInterruptedWork

docs/external/js/react-dom.development.js:19560–19602  ·  view source on GitHub ↗
(interruptedWork)

Source from the content-addressed store, hash-verified

19558 }
19559
19560 function unwindInterruptedWork(interruptedWork) {
19561 switch (interruptedWork.tag) {
19562 case ClassComponent:
19563 {
19564 var childContextTypes = interruptedWork.type.childContextTypes;
19565
19566 if (childContextTypes !== null && childContextTypes !== undefined) {
19567 popContext(interruptedWork);
19568 }
19569
19570 break;
19571 }
19572
19573 case HostRoot:
19574 {
19575 popHostContainer(interruptedWork);
19576 popTopLevelContextObject(interruptedWork);
19577 break;
19578 }
19579
19580 case HostComponent:
19581 {
19582 popHostContext(interruptedWork);
19583 break;
19584 }
19585
19586 case HostPortal:
19587 popHostContainer(interruptedWork);
19588 break;
19589
19590 case SuspenseComponent:
19591 popSuspenseContext(interruptedWork);
19592 break;
19593
19594 case SuspenseListComponent:
19595 popSuspenseContext(interruptedWork);
19596 break;
19597
19598 case ContextProvider:
19599 popProvider(interruptedWork);
19600 break;
19601 }
19602 }
19603
19604 function createCapturedValue(value, source) {
19605 // If the value is an error, call this function immediately after it is thrown

Callers 2

prepareFreshStackFunction · 0.85

Calls 6

popContextFunction · 0.85
popHostContainerFunction · 0.85
popTopLevelContextObjectFunction · 0.85
popHostContextFunction · 0.85
popSuspenseContextFunction · 0.85
popProviderFunction · 0.85

Tested by

no test coverage detected