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

Function stopFailedWorkTimer

code/event-handlers/public/app.js:7026–7040  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7024}
7025
7026function stopFailedWorkTimer(fiber) {
7027 if (enableUserTimingAPI) {
7028 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7029 return;
7030 }
7031 // If we pause, its parent is the fiber to unwind from.
7032 currentFiber = fiber['return'];
7033 if (!fiber._debugIsCurrentlyTiming) {
7034 return;
7035 }
7036 fiber._debugIsCurrentlyTiming = false;
7037 var warning$$1 = 'An error was thrown inside this error boundary';
7038 endFiberMark(fiber, null, warning$$1);
7039 }
7040}
7041
7042function startPhaseTimer(fiber, phase) {
7043 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected