MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / cancelWorkTimer

Function cancelWorkTimer

code/new-context-api/public/app.js:7030–7040  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7028}
7029
7030function cancelWorkTimer(fiber) {
7031 if (enableUserTimingAPI) {
7032 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7033 return;
7034 }
7035 // Remember we shouldn't complete measurement for this fiber.
7036 // Otherwise flamechart will be deep even for small updates.
7037 fiber._debugIsCurrentlyTiming = false;
7038 clearFiberMark(fiber, null);
7039 }
7040}
7041
7042function stopWorkTimer(fiber) {
7043 if (enableUserTimingAPI) {

Callers 2

bailoutOnLowPriorityFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
clearFiberMarkFunction · 0.70

Tested by

no test coverage detected