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

Function cancelWorkTimer

code/third-party/public/app.js:6902–6912  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6900}
6901
6902function cancelWorkTimer(fiber) {
6903 if (enableUserTimingAPI) {
6904 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
6905 return;
6906 }
6907 // Remember we shouldn't complete measurement for this fiber.
6908 // Otherwise flamechart will be deep even for small updates.
6909 fiber._debugIsCurrentlyTiming = false;
6910 clearFiberMark(fiber, null);
6911 }
6912}
6913
6914function stopWorkTimer(fiber) {
6915 if (enableUserTimingAPI) {

Callers 2

bailoutOnLowPriorityFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
clearFiberMarkFunction · 0.70

Tested by

no test coverage detected