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

Function performUnitOfWork

bundle.js:7788–7794  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

7786// TODO Remove the above while(true) loop
7787// eslint-disable-next-line no-unreachable
7788return null;}function performUnitOfWork(workInProgress){// The current, flushed, state of this fiber is the alternate.
7789// Ideally nothing should rely on this, but relying on it here
7790// means that we don't need an additional field on the work in
7791// progress.
7792var current=workInProgress.alternate;// See if beginning this work spawns more work.
7793{startWorkTimer(workInProgress);}var next=beginWork(current,workInProgress,nextPriorityLevel);if(true&&ReactFiberInstrumentation$1.debugTool){ReactFiberInstrumentation$1.debugTool.onBeginWork(workInProgress);}if(next===null){// If this doesn't spawn new work, complete the current work.
7794next=completeUnitOfWork(workInProgress);}ReactCurrentOwner$1.current=null;{ReactDebugCurrentFiber$3.resetCurrentFiber();}return next;}function performFailedUnitOfWork(workInProgress){// The current, flushed, state of this fiber is the alternate.
7795// Ideally nothing should rely on this, but relying on it here
7796// means that we don't need an additional field on the work in
7797// progress.

Callers 2

handleCommitPhaseErrorsFunction · 0.85
workLoopFunction · 0.85

Calls 2

beginWorkFunction · 0.85
completeUnitOfWorkFunction · 0.85

Tested by

no test coverage detected