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

Function unwindWork

code/new-context-api/public/app.js:10407–10444  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

10405 }
10406
10407 function unwindWork(workInProgress) {
10408 switch (workInProgress.tag) {
10409 case ClassComponent:
10410 {
10411 popLegacyContextProvider(workInProgress);
10412 var effectTag = workInProgress.effectTag;
10413 if (effectTag & ShouldCapture) {
10414 workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
10415 return workInProgress;
10416 }
10417 return null;
10418 }
10419 case HostRoot:
10420 {
10421 popHostContainer(workInProgress);
10422 popTopLevelLegacyContextObject(workInProgress);
10423 var _effectTag = workInProgress.effectTag;
10424 if (_effectTag & ShouldCapture) {
10425 workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
10426 return workInProgress;
10427 }
10428 return null;
10429 }
10430 case HostComponent:
10431 {
10432 popHostContext(workInProgress);
10433 return null;
10434 }
10435 case HostPortal:
10436 popHostContainer(workInProgress);
10437 return null;
10438 case ContextProvider:
10439 popProvider(workInProgress);
10440 return null;
10441 default:
10442 return null;
10443 }
10444 }
10445
10446 function unwindInterruptedWork(interruptedWork) {
10447 switch (interruptedWork.tag) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 3

popHostContainerFunction · 0.70
popHostContextFunction · 0.70
popProviderFunction · 0.70

Tested by

no test coverage detected