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

Function cancelWorkTimer

code/communication/public/app.js:7704–7714  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7702}
7703
7704function cancelWorkTimer(fiber) {
7705 if (enableUserTimingAPI) {
7706 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7707 return;
7708 }
7709 // Remember we shouldn't complete measurement for this fiber.
7710 // Otherwise flamechart will be deep even for small updates.
7711 fiber._debugIsCurrentlyTiming = false;
7712 clearFiberMark(fiber, null);
7713 }
7714}
7715
7716function stopWorkTimer(fiber) {
7717 if (enableUserTimingAPI) {

Callers 2

bailoutOnLowPriorityFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
clearFiberMarkFunction · 0.70

Tested by

no test coverage detected