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

Function stopCommitTimer

code/new-context-api/public/app.js:7151–7170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7149}
7150
7151function stopCommitTimer() {
7152 if (enableUserTimingAPI) {
7153 if (!supportsUserTiming) {
7154 return;
7155 }
7156
7157 var warning$$1 = null;
7158 if (hasScheduledUpdateInCurrentCommit) {
7159 warning$$1 = 'Lifecycle hook scheduled a cascading update';
7160 } else if (commitCountInCurrentWorkLoop > 0) {
7161 warning$$1 = 'Caused by a cascading update in earlier commit';
7162 }
7163 hasScheduledUpdateInCurrentCommit = false;
7164 commitCountInCurrentWorkLoop++;
7165 isCommitting = false;
7166 labelsInCurrentCommit.clear();
7167
7168 endMark('(Committing Changes)', '(Committing Changes)', warning$$1);
7169 }
7170}
7171
7172function startCommitHostEffectsTimer() {
7173 if (enableUserTimingAPI) {

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected