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

Function stopCommitTimer

code/controlled-uncontrolled/public/app.js:7114–7133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected