MCPcopy Create free account
hub / github.com/reactjs/react-rails / commitLayoutEffects

Function commitLayoutEffects

lib/assets/react-source/development/react.js:26489–26509  ·  view source on GitHub ↗
(root, committedExpirationTime)

Source from the content-addressed store, hash-verified

26487 }
26488
26489 function commitLayoutEffects(root, committedExpirationTime) {
26490 // TODO: Should probably move the bulk of this function to commitWork.
26491 while (nextEffect !== null) {
26492 setCurrentFiber(nextEffect);
26493 var effectTag = nextEffect.effectTag;
26494
26495 if (effectTag & (Update | Callback)) {
26496 recordEffect();
26497 var current = nextEffect.alternate;
26498 commitLifeCycles(root, current, nextEffect);
26499 }
26500
26501 if (effectTag & Ref) {
26502 recordEffect();
26503 commitAttachRef(nextEffect);
26504 }
26505
26506 resetCurrentFiber();
26507 nextEffect = nextEffect.nextEffect;
26508 }
26509 }
26510
26511 function flushPassiveEffects() {
26512 if (pendingPassiveEffectsRenderPriority !== NoPriority) {

Callers

nothing calls this directly

Calls 5

setCurrentFiberFunction · 0.85
recordEffectFunction · 0.85
commitLifeCyclesFunction · 0.85
commitAttachRefFunction · 0.85
resetCurrentFiberFunction · 0.85

Tested by

no test coverage detected