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

Function cancelWorkTimer

code/controlled-uncontrolled/public/app.js:6993–7003  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6991}
6992
6993function cancelWorkTimer(fiber) {
6994 if (enableUserTimingAPI) {
6995 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
6996 return;
6997 }
6998 // Remember we shouldn't complete measurement for this fiber.
6999 // Otherwise flamechart will be deep even for small updates.
7000 fiber._debugIsCurrentlyTiming = false;
7001 clearFiberMark(fiber, null);
7002 }
7003}
7004
7005function stopWorkTimer(fiber) {
7006 if (enableUserTimingAPI) {

Callers 2

bailoutOnLowPriorityFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
clearFiberMarkFunction · 0.70

Tested by

no test coverage detected