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

Function stopWorkTimer

code/communication/public/app.js:7716–7729  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7714}
7715
7716function stopWorkTimer(fiber) {
7717 if (enableUserTimingAPI) {
7718 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7719 return;
7720 }
7721 // If we pause, its parent is the fiber to unwind from.
7722 currentFiber = fiber['return'];
7723 if (!fiber._debugIsCurrentlyTiming) {
7724 return;
7725 }
7726 fiber._debugIsCurrentlyTiming = false;
7727 endFiberMark(fiber, null, null);
7728 }
7729}
7730
7731function stopFailedWorkTimer(fiber) {
7732 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected