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

Function stopWorkTimer

code/higher-order-components/public/app.js:7675–7688  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

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

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected