MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / stopWorkTimer

Function stopWorkTimer

code/new-context-api/public/app.js:7042–7055  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7040}
7041
7042function stopWorkTimer(fiber) {
7043 if (enableUserTimingAPI) {
7044 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7045 return;
7046 }
7047 // If we pause, its parent is the fiber to unwind from.
7048 currentFiber = fiber['return'];
7049 if (!fiber._debugIsCurrentlyTiming) {
7050 return;
7051 }
7052 fiber._debugIsCurrentlyTiming = false;
7053 endFiberMark(fiber, null, null);
7054 }
7055}
7056
7057function stopFailedWorkTimer(fiber) {
7058 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected