react-redux-fetch icon indicating copy to clipboard operation
react-redux-fetch copied to clipboard

Cancel request

Open ArnoNuyts opened this issue 6 years ago • 1 comments

I would like to be able to cancel a request. In my use-case calls can take a long time. If the user changes a filter or sorting in the UI while a call is still going it would be nice if it could be canceled. Currently the result is overwriten if the second call takes less time.

Would this be a huge change or rather small? If you point me in the right direction I can take a stab at it.

ArnoNuyts avatar Dec 04 '18 09:12 ArnoNuyts

I've been thinking about this, but not sure how this can be implemented. What's your idea on the way you want to use that feature? For example, dispatch a cancel event? Currently, a specific request has no unique identifier, so there's no way to let react-redux-fetch know which request you want to cancel/ignore.

hirviid avatar Dec 05 '18 17:12 hirviid