MCPcopy Index your code
hub / github.com/caseywebdev/react-list / replayBeginWork

Function replayBeginWork

docs/index.js:33762–33799  ·  view source on GitHub ↗
(unitOfWork)

Source from the content-addressed store, hash-verified

33760 null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
33761 }
33762 function replayBeginWork(unitOfWork) {
33763 var current = unitOfWork.alternate,
33764 isProfilingMode = (unitOfWork.mode & ProfileMode) !== NoMode;
33765 isProfilingMode && startProfilerTimer(unitOfWork);
33766 switch (unitOfWork.tag) {
33767 case 15:
33768 case 0:
33769 current = replayFunctionComponent(
33770 current,
33771 unitOfWork,
33772 unitOfWork.pendingProps,
33773 unitOfWork.type,
33774 void 0,
33775 workInProgressRootRenderLanes
33776 );
33777 break;
33778 case 11:
33779 current = replayFunctionComponent(
33780 current,
33781 unitOfWork,
33782 unitOfWork.pendingProps,
33783 unitOfWork.type.render,
33784 unitOfWork.ref,
33785 workInProgressRootRenderLanes
33786 );
33787 break;
33788 case 5:
33789 resetHooksOnUnwind(unitOfWork);
33790 default:
33791 unwindInterruptedWork(current, unitOfWork),
33792 (unitOfWork = workInProgress =
33793 resetWorkInProgress(unitOfWork, entangledRenderLanes)),
33794 (current = beginWork(current, unitOfWork, entangledRenderLanes));
33795 }
33796 isProfilingMode &&
33797 stopProfilerTimerIfRunningAndRecordDuration(unitOfWork);
33798 return current;
33799 }
33800 function throwAndUnwindWorkLoop(
33801 root,
33802 unitOfWork,

Callers

nothing calls this directly

Calls 7

startProfilerTimerFunction · 0.85
replayFunctionComponentFunction · 0.85
resetHooksOnUnwindFunction · 0.85
unwindInterruptedWorkFunction · 0.85
resetWorkInProgressFunction · 0.85
beginWorkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…