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

Function unwindWork

code/redux/public/app.js:11297–11334  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

11295 }
11296
11297 function unwindWork(workInProgress) {
11298 switch (workInProgress.tag) {
11299 case ClassComponent:
11300 {
11301 popLegacyContextProvider(workInProgress);
11302 var effectTag = workInProgress.effectTag;
11303 if (effectTag & ShouldCapture) {
11304 workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
11305 return workInProgress;
11306 }
11307 return null;
11308 }
11309 case HostRoot:
11310 {
11311 popHostContainer(workInProgress);
11312 popTopLevelLegacyContextObject(workInProgress);
11313 var _effectTag = workInProgress.effectTag;
11314 if (_effectTag & ShouldCapture) {
11315 workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
11316 return workInProgress;
11317 }
11318 return null;
11319 }
11320 case HostComponent:
11321 {
11322 popHostContext(workInProgress);
11323 return null;
11324 }
11325 case HostPortal:
11326 popHostContainer(workInProgress);
11327 return null;
11328 case ContextProvider:
11329 popProvider(workInProgress);
11330 return null;
11331 default:
11332 return null;
11333 }
11334 }
11335
11336 function unwindInterruptedWork(interruptedWork) {
11337 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