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

Function unwindWork

code/composition/public/app.js:11184–11221  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

11182 }
11183
11184 function unwindWork(workInProgress) {
11185 switch (workInProgress.tag) {
11186 case ClassComponent:
11187 {
11188 popLegacyContextProvider(workInProgress);
11189 var effectTag = workInProgress.effectTag;
11190 if (effectTag & ShouldCapture) {
11191 workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
11192 return workInProgress;
11193 }
11194 return null;
11195 }
11196 case HostRoot:
11197 {
11198 popHostContainer(workInProgress);
11199 popTopLevelLegacyContextObject(workInProgress);
11200 var _effectTag = workInProgress.effectTag;
11201 if (_effectTag & ShouldCapture) {
11202 workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
11203 return workInProgress;
11204 }
11205 return null;
11206 }
11207 case HostComponent:
11208 {
11209 popHostContext(workInProgress);
11210 return null;
11211 }
11212 case HostPortal:
11213 popHostContainer(workInProgress);
11214 return null;
11215 case ContextProvider:
11216 popProvider(workInProgress);
11217 return null;
11218 default:
11219 return null;
11220 }
11221 }
11222
11223 function unwindInterruptedWork(interruptedWork) {
11224 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