MCPcopy Index your code
hub / github.com/caseywebdev/react-list / doubleInvokeEffectsOnFiber

Function doubleInvokeEffectsOnFiber

docs/index.js:34380–34393  ·  view source on GitHub ↗
(root, fiber)

Source from the content-addressed store, hash-verified

34378 }
34379 }
34380 function doubleInvokeEffectsOnFiber(root, fiber) {
34381 var shouldDoubleInvokePassiveEffects =
34382 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !0;
34383 setIsStrictModeForDevtools(!0);
34384 try {
34385 disappearLayoutEffects(fiber),
34386 shouldDoubleInvokePassiveEffects && disconnectPassiveEffect(fiber),
34387 reappearLayoutEffects(root, fiber.alternate, fiber, !1),
34388 shouldDoubleInvokePassiveEffects &&
34389 reconnectPassiveEffects(root, fiber, 0, null, !1);
34390 } finally {
34391 setIsStrictModeForDevtools(!1);
34392 }
34393 }
34394 function commitDoubleInvokeEffectsInDEV(root) {
34395 var doubleInvokeEffects = !0;
34396 root.current.mode & (StrictLegacyMode | StrictEffectsMode) ||

Callers

nothing calls this directly

Calls 5

disappearLayoutEffectsFunction · 0.85
disconnectPassiveEffectFunction · 0.85
reappearLayoutEffectsFunction · 0.85
reconnectPassiveEffectsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…