(fiber, hasPassiveEffects)
| 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 | { |
no test coverage detected
searching dependent graphs…