A11yTree - v0.2.2
    Preparing search index...

    Variable useIsomorphicLayoutEffectConst

    useIsomorphicLayoutEffect: (
        effect: EffectCallback,
        deps?: DependencyList,
    ) => void = ...

    useLayoutEffect, but useEffect during SSR where React warns on it.

    Type Declaration

      • (effect: EffectCallback, deps?: DependencyList): void
      • The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.

        Prefer the standard useEffect when possible to avoid blocking visual updates.

        If you’re migrating code from a class component, useLayoutEffect fires in the same phase as componentDidMount and componentDidUpdate.

        Parameters

        • effect: EffectCallback
        • Optionaldeps: DependencyList

        Returns void