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

Function stopWorkTimer

code/one-direction-data-flow/public/app.js:7554–7567  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7552}
7553
7554function stopWorkTimer(fiber) {
7555 if (enableUserTimingAPI) {
7556 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7557 return;
7558 }
7559 // If we pause, its parent is the fiber to unwind from.
7560 currentFiber = fiber['return'];
7561 if (!fiber._debugIsCurrentlyTiming) {
7562 return;
7563 }
7564 fiber._debugIsCurrentlyTiming = false;
7565 endFiberMark(fiber, null, null);
7566 }
7567}
7568
7569function stopFailedWorkTimer(fiber) {
7570 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected