- accepted / - tried
Implement useUpdateEffect() that it works the same as useEffect() except that it skips running the callback on first render.
useUpdateEffect()
useEffect()
Bugfree ordinary solution is better than buggy fancy ones.
Try it out
Console