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

Function stopFailedWorkTimer

code/dependency-injection/public/app.js:7789–7803  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7787}
7788
7789function stopFailedWorkTimer(fiber) {
7790 if (enableUserTimingAPI) {
7791 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7792 return;
7793 }
7794 // If we pause, its parent is the fiber to unwind from.
7795 currentFiber = fiber['return'];
7796 if (!fiber._debugIsCurrentlyTiming) {
7797 return;
7798 }
7799 fiber._debugIsCurrentlyTiming = false;
7800 var warning$$1 = 'An error was thrown inside this error boundary';
7801 endFiberMark(fiber, null, warning$$1);
7802 }
7803}
7804
7805function startPhaseTimer(fiber, phase) {
7806 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected