I want to trigger a dispatch on my useReducer function on the initial render. If I put it inside useEffect, a warning error pops up. I\'ve seen conflicting information on whethe