MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / stopFailedWorkTimer

Function stopFailedWorkTimer

code/new-context-api/public/app.js:7057–7071  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7055}
7056
7057function stopFailedWorkTimer(fiber) {
7058 if (enableUserTimingAPI) {
7059 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7060 return;
7061 }
7062 // If we pause, its parent is the fiber to unwind from.
7063 currentFiber = fiber['return'];
7064 if (!fiber._debugIsCurrentlyTiming) {
7065 return;
7066 }
7067 fiber._debugIsCurrentlyTiming = false;
7068 var warning$$1 = 'An error was thrown inside this error boundary';
7069 endFiberMark(fiber, null, warning$$1);
7070 }
7071}
7072
7073function startPhaseTimer(fiber, phase) {
7074 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected