I\'m trying to refactor a class component to functional component and am not convinced by using an action creator inside of useEffect() instead of compone
useEffect()
compone