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

Function stopCommitTimer

code/one-direction-data-flow/public/app.js:7663–7682  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7661}
7662
7663function stopCommitTimer() {
7664 if (enableUserTimingAPI) {
7665 if (!supportsUserTiming) {
7666 return;
7667 }
7668
7669 var warning$$1 = null;
7670 if (hasScheduledUpdateInCurrentCommit) {
7671 warning$$1 = 'Lifecycle hook scheduled a cascading update';
7672 } else if (commitCountInCurrentWorkLoop > 0) {
7673 warning$$1 = 'Caused by a cascading update in earlier commit';
7674 }
7675 hasScheduledUpdateInCurrentCommit = false;
7676 commitCountInCurrentWorkLoop++;
7677 isCommitting = false;
7678 labelsInCurrentCommit.clear();
7679
7680 endMark('(Committing Changes)', '(Committing Changes)', warning$$1);
7681 }
7682}
7683
7684function startCommitHostEffectsTimer() {
7685 if (enableUserTimingAPI) {

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected