Skip to content

useEffectIgnoreInitial

A useEffect hook that ignores the initial render.

source

Usage

import { useEffectIgnoreInitial } from '@w3ux/hooks';
 
...
 
useEffectIgnoreInitial(() => {
  console.log('This logic will execute on subsequent renders, but not on the initial render.');
}, [dependency]);