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

Function pauseTimers

code/controlled-uncontrolled/public/app.js:6915–6925  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6913};
6914
6915var pauseTimers = function () {
6916 // Stops all currently active measurements so that they can be resumed
6917 // if we continue in a later deferred loop from the same unit of work.
6918 var fiber = currentFiber;
6919 while (fiber) {
6920 if (fiber._debugIsCurrentlyTiming) {
6921 endFiberMark(fiber, null, null);
6922 }
6923 fiber = fiber['return'];
6924 }
6925};
6926
6927var resumeTimersRecursively = function (fiber) {
6928 if (fiber['return'] !== null) {

Callers 1

stopWorkLoopTimerFunction · 0.70

Calls 1

endFiberMarkFunction · 0.70

Tested by

no test coverage detected