Function useUpdateEffect

  • its the useEffect hook but it skips the first render, making this work like componentDidUpdate taken from the FAQ https://reactjs.org/docs/hooks-faq.html#can-i-run-an-effect-only-on-updates

    Parameters

    • effect: EffectCallback

      the callback

    • Optional deps: DependencyList

    Returns void

Generated using TypeDoc