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

Function cancelWorkTimer

code/styling/public/app.js:7669–7679  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7667}
7668
7669function cancelWorkTimer(fiber) {
7670 if (enableUserTimingAPI) {
7671 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7672 return;
7673 }
7674 // Remember we shouldn't complete measurement for this fiber.
7675 // Otherwise flamechart will be deep even for small updates.
7676 fiber._debugIsCurrentlyTiming = false;
7677 clearFiberMark(fiber, null);
7678 }
7679}
7680
7681function stopWorkTimer(fiber) {
7682 if (enableUserTimingAPI) {

Callers 2

bailoutOnLowPriorityFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
clearFiberMarkFunction · 0.70

Tested by

no test coverage detected