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

Function stopCommitTimer

code/event-handlers/public/app.js:7120–7139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7118}
7119
7120function stopCommitTimer() {
7121 if (enableUserTimingAPI) {
7122 if (!supportsUserTiming) {
7123 return;
7124 }
7125
7126 var warning$$1 = null;
7127 if (hasScheduledUpdateInCurrentCommit) {
7128 warning$$1 = 'Lifecycle hook scheduled a cascading update';
7129 } else if (commitCountInCurrentWorkLoop > 0) {
7130 warning$$1 = 'Caused by a cascading update in earlier commit';
7131 }
7132 hasScheduledUpdateInCurrentCommit = false;
7133 commitCountInCurrentWorkLoop++;
7134 isCommitting = false;
7135 labelsInCurrentCommit.clear();
7136
7137 endMark('(Committing Changes)', '(Committing Changes)', warning$$1);
7138 }
7139}
7140
7141function startCommitHostEffectsTimer() {
7142 if (enableUserTimingAPI) {

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected