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

Function cancelWorkTimer

code/redux/public/app.js:7920–7930  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7918}
7919
7920function cancelWorkTimer(fiber) {
7921 if (enableUserTimingAPI) {
7922 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7923 return;
7924 }
7925 // Remember we shouldn't complete measurement for this fiber.
7926 // Otherwise flamechart will be deep even for small updates.
7927 fiber._debugIsCurrentlyTiming = false;
7928 clearFiberMark(fiber, null);
7929 }
7930}
7931
7932function stopWorkTimer(fiber) {
7933 if (enableUserTimingAPI) {

Callers 2

bailoutOnLowPriorityFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
clearFiberMarkFunction · 0.70

Tested by

no test coverage detected