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

Function performFailedUnitOfWork

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

Source from the content-addressed store, hash-verified

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.
7798var current=workInProgress.alternate;// See if beginning this work spawns more work.
7799{startWorkTimer(workInProgress);}var next=beginFailedWork(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.
7800next=completeUnitOfWork(workInProgress);}ReactCurrentOwner$1.current=null;{ReactDebugCurrentFiber$3.resetCurrentFiber();}return next;}function performDeferredWork(deadline){performWork(OffscreenPriority,deadline);}function handleCommitPhaseErrors(){// This is a special work loop for handling commit phase errors. It's
7801// similar to the syncrhonous work loop, but does an additional check on
7802// each fiber to see if it's an error boundary with an unhandled error. If
7803// so, it uses a forked version of performUnitOfWork that unmounts the

Callers 2

handleCommitPhaseErrorsFunction · 0.85
performWorkCatchBlockFunction · 0.85

Calls 2

beginFailedWorkFunction · 0.85
completeUnitOfWorkFunction · 0.85

Tested by

no test coverage detected