useReducer Action dispatched twice
To first clarify the existing behavior, the STATUS_FETCHING action was actually only being “dispatched” (i.e. if you do a console.log right before the dispatch call in getData within useApiCall.js) once, but the reducer code was executing twice. I probably wouldn’t have known what to look for to explain why if it hadn’t been for my … Read more