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

Function unwindInterruptedWork

code/new-context-api/public/app.js:10446–10473  ·  view source on GitHub ↗
(interruptedWork)

Source from the content-addressed store, hash-verified

10444 }
10445
10446 function unwindInterruptedWork(interruptedWork) {
10447 switch (interruptedWork.tag) {
10448 case ClassComponent:
10449 {
10450 popLegacyContextProvider(interruptedWork);
10451 break;
10452 }
10453 case HostRoot:
10454 {
10455 popHostContainer(interruptedWork);
10456 popTopLevelLegacyContextObject(interruptedWork);
10457 break;
10458 }
10459 case HostComponent:
10460 {
10461 popHostContext(interruptedWork);
10462 break;
10463 }
10464 case HostPortal:
10465 popHostContainer(interruptedWork);
10466 break;
10467 case ContextProvider:
10468 popProvider(interruptedWork);
10469 break;
10470 default:
10471 break;
10472 }
10473 }
10474
10475 return {
10476 throwException: throwException,

Callers 1

resetStackFunction · 0.70

Calls 3

popHostContainerFunction · 0.70
popHostContextFunction · 0.70
popProviderFunction · 0.70

Tested by

no test coverage detected