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

Function stopWorkTimer

code/event-handlers/public/app.js:7011–7024  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7009}
7010
7011function stopWorkTimer(fiber) {
7012 if (enableUserTimingAPI) {
7013 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7014 return;
7015 }
7016 // If we pause, its parent is the fiber to unwind from.
7017 currentFiber = fiber['return'];
7018 if (!fiber._debugIsCurrentlyTiming) {
7019 return;
7020 }
7021 fiber._debugIsCurrentlyTiming = false;
7022 endFiberMark(fiber, null, null);
7023 }
7024}
7025
7026function stopFailedWorkTimer(fiber) {
7027 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected