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

Function stopWorkTimer

code/dependency-injection/public/app.js:7774–7787  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7772}
7773
7774function stopWorkTimer(fiber) {
7775 if (enableUserTimingAPI) {
7776 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7777 return;
7778 }
7779 // If we pause, its parent is the fiber to unwind from.
7780 currentFiber = fiber['return'];
7781 if (!fiber._debugIsCurrentlyTiming) {
7782 return;
7783 }
7784 fiber._debugIsCurrentlyTiming = false;
7785 endFiberMark(fiber, null, null);
7786 }
7787}
7788
7789function stopFailedWorkTimer(fiber) {
7790 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected