MCPcopy Index your code
hub / github.com/microsoft/SandDance / commitLayoutEffects

Function commitLayoutEffects

docs/external/js/react-dom.development.js:22929–22949  ·  view source on GitHub ↗
(root, committedExpirationTime)

Source from the content-addressed store, hash-verified

22927 }
22928
22929 function commitLayoutEffects(root, committedExpirationTime) {
22930 // TODO: Should probably move the bulk of this function to commitWork.
22931 while (nextEffect !== null) {
22932 setCurrentFiber(nextEffect);
22933 var effectTag = nextEffect.effectTag;
22934
22935 if (effectTag & (Update | Callback)) {
22936 recordEffect();
22937 var current = nextEffect.alternate;
22938 commitLifeCycles(root, current, nextEffect);
22939 }
22940
22941 if (effectTag & Ref) {
22942 recordEffect();
22943 commitAttachRef(nextEffect);
22944 }
22945
22946 resetCurrentFiber();
22947 nextEffect = nextEffect.nextEffect;
22948 }
22949 }
22950
22951 function flushPassiveEffects() {
22952 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