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

Function stopWorkLoopTimer

code/composition/public/app.js:7893–7914  ·  view source on GitHub ↗
(interruptedBy)

Source from the content-addressed store, hash-verified

7891}
7892
7893function stopWorkLoopTimer(interruptedBy) {
7894 if (enableUserTimingAPI) {
7895 if (!supportsUserTiming) {
7896 return;
7897 }
7898 var warning$$1 = null;
7899 if (interruptedBy !== null) {
7900 if (interruptedBy.tag === HostRoot) {
7901 warning$$1 = 'A top-level update interrupted the previous render';
7902 } else {
7903 var componentName = getComponentName(interruptedBy) || 'Unknown';
7904 warning$$1 = 'An update to ' + componentName + ' interrupted the previous render';
7905 }
7906 } else if (commitCountInCurrentWorkLoop > 1) {
7907 warning$$1 = 'There were cascading updates';
7908 }
7909 commitCountInCurrentWorkLoop = 0;
7910 // Pause any measurements until the next loop.
7911 pauseTimers();
7912 endMark('(React Tree Reconciliation)', '(React Tree Reconciliation)', warning$$1);
7913 }
7914}
7915
7916function startCommitTimer() {
7917 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 3

getComponentNameFunction · 0.70
pauseTimersFunction · 0.70
endMarkFunction · 0.70

Tested by

no test coverage detected