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

Function stopWorkTimer

code/third-party/public/app.js:6914–6927  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6912}
6913
6914function stopWorkTimer(fiber) {
6915 if (enableUserTimingAPI) {
6916 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
6917 return;
6918 }
6919 // If we pause, its parent is the fiber to unwind from.
6920 currentFiber = fiber['return'];
6921 if (!fiber._debugIsCurrentlyTiming) {
6922 return;
6923 }
6924 fiber._debugIsCurrentlyTiming = false;
6925 endFiberMark(fiber, null, null);
6926 }
6927}
6928
6929function stopFailedWorkTimer(fiber) {
6930 if (enableUserTimingAPI) {

Callers 1

completeUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
endFiberMarkFunction · 0.70

Tested by

no test coverage detected