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

Function resetWorkPriority

bundle.js:7759–7763  ·  view source on GitHub ↗
(workInProgress,renderPriority)

Source from the content-addressed store, hash-verified

7757if(commitPhaseBoundaries){commitPhaseBoundaries.forEach(scheduleErrorRecovery);commitPhaseBoundaries=null;}// This tree is done. Reset the unit of work pointer to the next highest
7758// priority root. If there's no more work left, the pointer is set to null.
7759resetNextUnitOfWork();}function resetWorkPriority(workInProgress,renderPriority){if(workInProgress.pendingWorkPriority!==NoWork$2&&workInProgress.pendingWorkPriority>renderPriority){// This was a down-prioritization. Don't bubble priority from children.
7760return;}// Check for pending update priority.
7761var newPriority=getUpdatePriority$1(workInProgress);// TODO: Coroutines need to visit stateNode
7762var child=workInProgress.child;while(child!==null){// Ensure that remaining work priority bubbles up.
7763newPriority=largerPriority$1(newPriority,child.pendingWorkPriority);child=child.sibling;}workInProgress.pendingWorkPriority=newPriority;}function completeUnitOfWork(workInProgress){while(true){// The current, flushed, state of this fiber is the alternate.
7764// Ideally nothing should rely on this, but relying on it here
7765// means that we don't need an additional field on the work in
7766// progress.

Callers 1

completeUnitOfWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected