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

Function stopCommitTimer

code/higher-order-components/public/app.js:7784–7803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7782}
7783
7784function stopCommitTimer() {
7785 if (enableUserTimingAPI) {
7786 if (!supportsUserTiming) {
7787 return;
7788 }
7789
7790 var warning$$1 = null;
7791 if (hasScheduledUpdateInCurrentCommit) {
7792 warning$$1 = 'Lifecycle hook scheduled a cascading update';
7793 } else if (commitCountInCurrentWorkLoop > 0) {
7794 warning$$1 = 'Caused by a cascading update in earlier commit';
7795 }
7796 hasScheduledUpdateInCurrentCommit = false;
7797 commitCountInCurrentWorkLoop++;
7798 isCommitting = false;
7799 labelsInCurrentCommit.clear();
7800
7801 endMark('(Committing Changes)', '(Committing Changes)', warning$$1);
7802 }
7803}
7804
7805function startCommitHostEffectsTimer() {
7806 if (enableUserTimingAPI) {

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected