Non initial render useEffect (custom hook)
Checkout my solution with having problem with useEffect's first render wich I call initial render. In some cases you may need something happens in useeffect but not in first render of page. this code will help you