MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / commitAllLifeCycles

Function commitAllLifeCycles

code/redux/public/app.js:13134–13170  ·  view source on GitHub ↗
(finishedRoot, currentTime, committedExpirationTime)

Source from the content-addressed store, hash-verified

13132 }
13133
13134 function commitAllLifeCycles(finishedRoot, currentTime, committedExpirationTime) {
13135 {
13136 ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
13137
13138 if (warnAboutDeprecatedLifecycles) {
13139 ReactStrictModeWarnings.flushPendingDeprecationWarnings();
13140 }
13141 }
13142 while (nextEffect !== null) {
13143 var effectTag = nextEffect.effectTag;
13144
13145 if (effectTag & (Update | Callback)) {
13146 recordEffect();
13147 var current = nextEffect.alternate;
13148 commitLifeCycles(finishedRoot, current, nextEffect, currentTime, committedExpirationTime);
13149 }
13150
13151 if (effectTag & ErrLog) {
13152 commitErrorLogging(nextEffect, onUncaughtError);
13153 }
13154
13155 if (effectTag & Ref) {
13156 recordEffect();
13157 commitAttachRef(nextEffect);
13158 }
13159
13160 var next = nextEffect.nextEffect;
13161 // Ensure that we clean these up so that we don't accidentally keep them.
13162 // I'm not actually sure this matters because we can't reset firstEffect
13163 // and lastEffect since they're on every node, not just the effectful
13164 // ones. So we have to clean everything as we reuse nodes anyway.
13165 nextEffect.nextEffect = null;
13166 // Ensure that we reset the effectTag here so that we can rely on effect
13167 // tags to reason about the current life-cycle.
13168 nextEffect = next;
13169 }
13170 }
13171
13172 function isAlreadyFailedLegacyErrorBoundary(instance) {
13173 return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);

Callers

nothing calls this directly

Calls 4

recordEffectFunction · 0.70
commitLifeCyclesFunction · 0.70
commitErrorLoggingFunction · 0.70
commitAttachRefFunction · 0.70

Tested by

no test coverage detected