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

Function stopFailedWorkTimer

code/communication/public/app.js:7731–7745  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7729}
7730
7731function stopFailedWorkTimer(fiber) {
7732 if (enableUserTimingAPI) {
7733 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7734 return;
7735 }
7736 // If we pause, its parent is the fiber to unwind from.
7737 currentFiber = fiber['return'];
7738 if (!fiber._debugIsCurrentlyTiming) {
7739 return;
7740 }
7741 fiber._debugIsCurrentlyTiming = false;
7742 var warning$$1 = 'An error was thrown inside this error boundary';
7743 endFiberMark(fiber, null, warning$$1);
7744 }
7745}
7746
7747function startPhaseTimer(fiber, phase) {
7748 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected