MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / unwindWork

Function unwindWork

code/communication/public/app.js:11081–11118  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

11079 }
11080
11081 function unwindWork(workInProgress) {
11082 switch (workInProgress.tag) {
11083 case ClassComponent:
11084 {
11085 popLegacyContextProvider(workInProgress);
11086 var effectTag = workInProgress.effectTag;
11087 if (effectTag & ShouldCapture) {
11088 workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
11089 return workInProgress;
11090 }
11091 return null;
11092 }
11093 case HostRoot:
11094 {
11095 popHostContainer(workInProgress);
11096 popTopLevelLegacyContextObject(workInProgress);
11097 var _effectTag = workInProgress.effectTag;
11098 if (_effectTag & ShouldCapture) {
11099 workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
11100 return workInProgress;
11101 }
11102 return null;
11103 }
11104 case HostComponent:
11105 {
11106 popHostContext(workInProgress);
11107 return null;
11108 }
11109 case HostPortal:
11110 popHostContainer(workInProgress);
11111 return null;
11112 case ContextProvider:
11113 popProvider(workInProgress);
11114 return null;
11115 default:
11116 return null;
11117 }
11118 }
11119
11120 function unwindInterruptedWork(interruptedWork) {
11121 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