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

Function stopWorkTimer

code/styling/public/app.js:7681–7694  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7679}
7680
7681function stopWorkTimer(fiber) {
7682 if (enableUserTimingAPI) {
7683 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7684 return;
7685 }
7686 // If we pause, its parent is the fiber to unwind from.
7687 currentFiber = fiber['return'];
7688 if (!fiber._debugIsCurrentlyTiming) {
7689 return;
7690 }
7691 fiber._debugIsCurrentlyTiming = false;
7692 endFiberMark(fiber, null, null);
7693 }
7694}
7695
7696function stopFailedWorkTimer(fiber) {
7697 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected