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

Function stopCommitTimer

code/redux/public/app.js:8041–8060  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8039}
8040
8041function stopCommitTimer() {
8042 if (enableUserTimingAPI) {
8043 if (!supportsUserTiming) {
8044 return;
8045 }
8046
8047 var warning$$1 = null;
8048 if (hasScheduledUpdateInCurrentCommit) {
8049 warning$$1 = 'Lifecycle hook scheduled a cascading update';
8050 } else if (commitCountInCurrentWorkLoop > 0) {
8051 warning$$1 = 'Caused by a cascading update in earlier commit';
8052 }
8053 hasScheduledUpdateInCurrentCommit = false;
8054 commitCountInCurrentWorkLoop++;
8055 isCommitting = false;
8056 labelsInCurrentCommit.clear();
8057
8058 endMark('(Committing Changes)', '(Committing Changes)', warning$$1);
8059 }
8060}
8061
8062function startCommitHostEffectsTimer() {
8063 if (enableUserTimingAPI) {

Callers 1

commitRootFunction · 0.70

Calls 1

endMarkFunction · 0.70

Tested by

no test coverage detected