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

Function cancelWorkTimer

code/higher-order-components/public/app.js:7663–7673  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

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

Callers 2

bailoutOnLowPriorityFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
clearFiberMarkFunction · 0.70

Tested by

no test coverage detected