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

Function stopCommitTimer

code/third-party/public/app.js:7023–7042  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7021}
7022
7023function stopCommitTimer() {
7024 if (enableUserTimingAPI) {
7025 if (!supportsUserTiming) {
7026 return;
7027 }
7028
7029 var warning$$1 = null;
7030 if (hasScheduledUpdateInCurrentCommit) {
7031 warning$$1 = 'Lifecycle hook scheduled a cascading update';
7032 } else if (commitCountInCurrentWorkLoop > 0) {
7033 warning$$1 = 'Caused by a cascading update in earlier commit';
7034 }
7035 hasScheduledUpdateInCurrentCommit = false;
7036 commitCountInCurrentWorkLoop++;
7037 isCommitting = false;
7038 labelsInCurrentCommit.clear();
7039
7040 endMark('(Committing Changes)', '(Committing Changes)', warning$$1);
7041 }
7042}
7043
7044function startCommitHostEffectsTimer() {
7045 if (enableUserTimingAPI) {

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected