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

Function unwindWork

code/higher-order-components/public/app.js:11040–11077  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

11038 }
11039
11040 function unwindWork(workInProgress) {
11041 switch (workInProgress.tag) {
11042 case ClassComponent:
11043 {
11044 popLegacyContextProvider(workInProgress);
11045 var effectTag = workInProgress.effectTag;
11046 if (effectTag & ShouldCapture) {
11047 workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
11048 return workInProgress;
11049 }
11050 return null;
11051 }
11052 case HostRoot:
11053 {
11054 popHostContainer(workInProgress);
11055 popTopLevelLegacyContextObject(workInProgress);
11056 var _effectTag = workInProgress.effectTag;
11057 if (_effectTag & ShouldCapture) {
11058 workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
11059 return workInProgress;
11060 }
11061 return null;
11062 }
11063 case HostComponent:
11064 {
11065 popHostContext(workInProgress);
11066 return null;
11067 }
11068 case HostPortal:
11069 popHostContainer(workInProgress);
11070 return null;
11071 case ContextProvider:
11072 popProvider(workInProgress);
11073 return null;
11074 default:
11075 return null;
11076 }
11077 }
11078
11079 function unwindInterruptedWork(interruptedWork) {
11080 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