MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / bailoutOnLowPriority

Function bailoutOnLowPriority

bundle.js:7466–7470  ·  view source on GitHub ↗
(current,workInProgress)

Source from the content-addressed store, hash-verified

7464// return null;
7465// }
7466cloneChildFibers(current,workInProgress);return workInProgress.child;}function bailoutOnLowPriority(current,workInProgress){{cancelWorkTimer(workInProgress);}// TODO: Handle HostComponent tags here as well and call pushHostContext()?
7467// See PR 8590 discussion for context
7468switch(workInProgress.tag){case HostRoot$7:pushHostRootContext(workInProgress);break;case ClassComponent$6:pushContextProvider$1(workInProgress);break;case HostPortal$4:pushHostContainer(workInProgress,workInProgress.stateNode.containerInfo);break;}// TODO: What if this is currently in progress?
7469// How can that happen? How is this not being cloned?
7470return null;}// TODO: Delete memoizeProps/State and move to reconcile/bailout instead
7471function memoizeProps(workInProgress,nextProps){workInProgress.memoizedProps=nextProps;}function memoizeState(workInProgress,nextState){workInProgress.memoizedState=nextState;// Don't reset the updateQueue, in case there are pending updates. Resetting
7472// is handled by beginUpdateQueue.
7473}function beginWork(current,workInProgress,priorityLevel){if(workInProgress.pendingWorkPriority===NoWork$3||workInProgress.pendingWorkPriority>priorityLevel){return bailoutOnLowPriority(current,workInProgress);}{ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress,null);}switch(workInProgress.tag){case IndeterminateComponent$2:return mountIndeterminateComponent(current,workInProgress,priorityLevel);case FunctionalComponent$1:return updateFunctionalComponent(current,workInProgress);case ClassComponent$6:return updateClassComponent(current,workInProgress,priorityLevel);case HostRoot$7:return updateHostRoot(current,workInProgress,priorityLevel);case HostComponent$7:return updateHostComponent(current,workInProgress,priorityLevel);case HostText$4:return updateHostText(current,workInProgress);case CoroutineHandlerPhase:// This is a restart. Reset the tag to the initial phase.

Callers 2

beginWorkFunction · 0.85
beginFailedWorkFunction · 0.85

Calls 2

pushHostRootContextFunction · 0.85
pushHostContainerFunction · 0.85

Tested by

no test coverage detected