Skip to main content

useIsomorphicEffect

Callable

  • useIsomorphicEffect(effect: EffectCallback, deps?: DependencyList): void

  • useLayoutEffect will show warning if used during ssr, e.g. with Next.js useIsomorphicEffect removes it by replacing useLayoutEffect with useEffect during ssr


    Parameters

    • effect: EffectCallback
    • optionaldeps: DependencyList

    Returns void