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

Function stopWorkLoopTimer

code/redux/public/app.js:8006–8027  ·  view source on GitHub ↗
(interruptedBy)

Source from the content-addressed store, hash-verified

8004}
8005
8006function stopWorkLoopTimer(interruptedBy) {
8007 if (enableUserTimingAPI) {
8008 if (!supportsUserTiming) {
8009 return;
8010 }
8011 var warning$$1 = null;
8012 if (interruptedBy !== null) {
8013 if (interruptedBy.tag === HostRoot) {
8014 warning$$1 = 'A top-level update interrupted the previous render';
8015 } else {
8016 var componentName = getComponentName(interruptedBy) || 'Unknown';
8017 warning$$1 = 'An update to ' + componentName + ' interrupted the previous render';
8018 }
8019 } else if (commitCountInCurrentWorkLoop > 1) {
8020 warning$$1 = 'There were cascading updates';
8021 }
8022 commitCountInCurrentWorkLoop = 0;
8023 // Pause any measurements until the next loop.
8024 pauseTimers();
8025 endMark('(React Tree Reconciliation)', '(React Tree Reconciliation)', warning$$1);
8026 }
8027}
8028
8029function startCommitTimer() {
8030 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 3

getComponentNameFunction · 0.70
pauseTimersFunction · 0.70
endMarkFunction · 0.70

Tested by

no test coverage detected