ava / use-http

🐶 React hook for making isomorphic http requests
https://use-http.com
MIT License
2.31k stars 114 forks source link

Cannot abort delayed retries #372

Open veloware opened 2 years ago

veloware commented 2 years ago

Describe the bug When using retries, when the fetch is in the delay stage, i.e. delayed between retries, calling the abort function from the useFetch() hook has no effect.

⚠️ Make a Codesandbox ⚠️ Please do this to easily reproduce the bug.

To Reproduce Steps to reproduce the behavior:

Expected behavior If delays are possible, it shouldn't matter when the abort is clicked, the subsequent requests should be aborted, not just an in flight request.