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

Function stopWorkLoopTimer

code/third-party/public/app.js:6988–7009  ·  view source on GitHub ↗
(interruptedBy)

Source from the content-addressed store, hash-verified

6986}
6987
6988function stopWorkLoopTimer(interruptedBy) {
6989 if (enableUserTimingAPI) {
6990 if (!supportsUserTiming) {
6991 return;
6992 }
6993 var warning$$1 = null;
6994 if (interruptedBy !== null) {
6995 if (interruptedBy.tag === HostRoot) {
6996 warning$$1 = 'A top-level update interrupted the previous render';
6997 } else {
6998 var componentName = getComponentName(interruptedBy) || 'Unknown';
6999 warning$$1 = 'An update to ' + componentName + ' interrupted the previous render';
7000 }
7001 } else if (commitCountInCurrentWorkLoop > 1) {
7002 warning$$1 = 'There were cascading updates';
7003 }
7004 commitCountInCurrentWorkLoop = 0;
7005 // Pause any measurements until the next loop.
7006 pauseTimers();
7007 endMark('(React Tree Reconciliation)', '(React Tree Reconciliation)', warning$$1);
7008 }
7009}
7010
7011function startCommitTimer() {
7012 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 3

getComponentNameFunction · 0.70
pauseTimersFunction · 0.70
endMarkFunction · 0.70

Tested by

no test coverage detected