MCPcopy Create free account
hub / github.com/microsoft/SandDance / stopFailedWorkTimer

Function stopFailedWorkTimer

docs/external/js/react-dom.development.js:10556–10573  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

10554 }
10555 }
10556 function stopFailedWorkTimer(fiber) {
10557 {
10558 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
10559 return;
10560 } // If we pause, its parent is the fiber to unwind from.
10561
10562
10563 currentFiber = fiber.return;
10564
10565 if (!fiber._debugIsCurrentlyTiming) {
10566 return;
10567 }
10568
10569 fiber._debugIsCurrentlyTiming = false;
10570 var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
10571 endFiberMark(fiber, null, warning);
10572 }
10573 }
10574 function startPhaseTimer(fiber, phase) {
10575 {
10576 if (!supportsUserTiming) {

Callers 1

completeUnitOfWorkFunction · 0.85

Calls 2

shouldIgnoreFiberFunction · 0.85
endFiberMarkFunction · 0.85

Tested by

no test coverage detected