Skip to main content

useDidUpdate

Callable

  • useDidUpdate(callback: EffectCallback, deps?: DependencyList): void

  • A hook that runs a callback after the first render.


    Parameters

    • callback: EffectCallback

      The callback to run after the first render.

    • optionaldeps: DependencyList

      The dependencies to watch for changes.

    Returns void