DEV Community

Discussion on: Refactoring An Old React App: Creating a Custom Hook to Make Fetch-Related Logic Reusable

Collapse
 
pallymore profile image
Yurui Zhang

Hi - thanks for the comment.

personally i don't think that's necessary - if REQUEST_STARTED is fired multiple times when it is already loading, I would think there are more serious problems in other parts of the app, not just in the reducer.