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

Function stopCommitTimer

code/styling/public/app.js:7790–7809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected