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

Function bailoutOnLowPriority

code/composition/public/app.js:10601–10623  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

10599 }
10600
10601 function bailoutOnLowPriority(current, workInProgress) {
10602 cancelWorkTimer(workInProgress);
10603
10604 // TODO: Handle HostComponent tags here as well and call pushHostContext()?
10605 // See PR 8590 discussion for context
10606 switch (workInProgress.tag) {
10607 case HostRoot:
10608 pushHostRootContext(workInProgress);
10609 break;
10610 case ClassComponent:
10611 pushLegacyContextProvider(workInProgress);
10612 break;
10613 case HostPortal:
10614 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
10615 break;
10616 case ContextProvider:
10617 pushProvider(workInProgress);
10618 break;
10619 }
10620 // TODO: What if this is currently in progress?
10621 // How can that happen? How is this not being cloned?
10622 return null;
10623 }
10624
10625 // TODO: Delete memoizeProps/State and move to reconcile/bailout instead
10626 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