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

Function stopWorkTimer

code/controlled-uncontrolled/public/app.js:7005–7018  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

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

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected