MCPcopy Create free account
hub / github.com/plotly/dash / commitDoubleInvokeEffectsInDEV

Function commitDoubleInvokeEffectsInDEV

dash/deps/react-dom@18.3.1.js:27364–27384  ·  view source on GitHub ↗
(fiber, hasPassiveEffects)

Source from the content-addressed store, hash-verified

27362 }
27363
27364 function commitDoubleInvokeEffectsInDEV(fiber, hasPassiveEffects) {
27365 {
27366 // TODO (StrictEffects) Should we set a marker on the root if it contains strict effects
27367 // so we don't traverse unnecessarily? similar to subtreeFlags but just at the root level.
27368 // Maybe not a big deal since this is DEV only behavior.
27369 setCurrentFiber(fiber);
27370 invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectUnmountInDEV);
27371
27372 if (hasPassiveEffects) {
27373 invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectUnmountInDEV);
27374 }
27375
27376 invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectMountInDEV);
27377
27378 if (hasPassiveEffects) {
27379 invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectMountInDEV);
27380 }
27381
27382 resetCurrentFiber();
27383 }
27384 }
27385
27386 function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) {
27387 {

Callers 2

commitRootImplFunction · 0.70
flushPassiveEffectsImplFunction · 0.70

Calls 3

setCurrentFiberFunction · 0.70
invokeEffectsInDevFunction · 0.70
resetCurrentFiberFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…