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

Function stopWorkLoopTimer

code/styling/public/app.js:7755–7776  ·  view source on GitHub ↗
(interruptedBy)

Source from the content-addressed store, hash-verified

7753}
7754
7755function stopWorkLoopTimer(interruptedBy) {
7756 if (enableUserTimingAPI) {
7757 if (!supportsUserTiming) {
7758 return;
7759 }
7760 var warning$$1 = null;
7761 if (interruptedBy !== null) {
7762 if (interruptedBy.tag === HostRoot) {
7763 warning$$1 = 'A top-level update interrupted the previous render';
7764 } else {
7765 var componentName = getComponentName(interruptedBy) || 'Unknown';
7766 warning$$1 = 'An update to ' + componentName + ' interrupted the previous render';
7767 }
7768 } else if (commitCountInCurrentWorkLoop > 1) {
7769 warning$$1 = 'There were cascading updates';
7770 }
7771 commitCountInCurrentWorkLoop = 0;
7772 // Pause any measurements until the next loop.
7773 pauseTimers();
7774 endMark('(React Tree Reconciliation)', '(React Tree Reconciliation)', warning$$1);
7775 }
7776}
7777
7778function startCommitTimer() {
7779 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 3

getComponentNameFunction · 0.70
pauseTimersFunction · 0.70
endMarkFunction · 0.70

Tested by

no test coverage detected