MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / stopFailedWorkTimer

Function stopFailedWorkTimer

code/styling/public/app.js:7696–7710  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7694}
7695
7696function stopFailedWorkTimer(fiber) {
7697 if (enableUserTimingAPI) {
7698 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7699 return;
7700 }
7701 // If we pause, its parent is the fiber to unwind from.
7702 currentFiber = fiber['return'];
7703 if (!fiber._debugIsCurrentlyTiming) {
7704 return;
7705 }
7706 fiber._debugIsCurrentlyTiming = false;
7707 var warning$$1 = 'An error was thrown inside this error boundary';
7708 endFiberMark(fiber, null, warning$$1);
7709 }
7710}
7711
7712function startPhaseTimer(fiber, phase) {
7713 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected