useUpdateEffect
Like useEffect, but ignores the first render.
Usage Example
1import { useUpdateEffect } from '@danixsoft/hooks';
2
3function Example({ count }) {
4 useUpdateEffect(() => {
5 console.log('Count updated!', count);
6 }, [count]);
7
8 return <div>Check console on update</div>;
9}