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

Function bailoutOnLowPriority

code/dependency-injection/public/app.js:10556–10578  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

10554 }
10555
10556 function bailoutOnLowPriority(current, workInProgress) {
10557 cancelWorkTimer(workInProgress);
10558
10559 // TODO: Handle HostComponent tags here as well and call pushHostContext()?
10560 // See PR 8590 discussion for context
10561 switch (workInProgress.tag) {
10562 case HostRoot:
10563 pushHostRootContext(workInProgress);
10564 break;
10565 case ClassComponent:
10566 pushLegacyContextProvider(workInProgress);
10567 break;
10568 case HostPortal:
10569 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
10570 break;
10571 case ContextProvider:
10572 pushProvider(workInProgress);
10573 break;
10574 }
10575 // TODO: What if this is currently in progress?
10576 // How can that happen? How is this not being cloned?
10577 return null;
10578 }
10579
10580 // TODO: Delete memoizeProps/State and move to reconcile/bailout instead
10581 function memoizeProps(workInProgress, nextProps) {

Callers 1

beginWorkFunction · 0.70

Calls 4

cancelWorkTimerFunction · 0.70
pushHostRootContextFunction · 0.70
pushHostContainerFunction · 0.70
pushProviderFunction · 0.70

Tested by

no test coverage detected