New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconnect and Retry-After #116
Comments
This should be very easy to implement on top of the existing API. Why does it warrant native support? |
Because it is always necessary and I do not know the reason why every programmer has to write it in js code. The same functionality is in the Chrome browser, it is enabled by default This is useful for Single Page Application. |
Are there libraries that support this in this manner already? How often are they used? |
We use it in my libraries over XHR. |
This seems worth considering once such a library becomes very successful. Until that point this is implementable on top of |
I'd like to reopen this issue. There are libraries and they are used heavily - https://github.com/axios/axios I'm also in this boat - I love the simplicity of fetch and eventually get the request for - "We need retry logic". I assume a lot of developers have this problem and I personally hate rewriting retry logic in every app. But I also want to avoid adding another 15kb lib for one or two features I actually need. |
@chiefcll can you open a new issue outlining the kind of retry support you are looking for? It would also help to see more evidence for developers selecting libraries for retry support in particular. |
It would be very helpful to have a option:
isRetry
If network offline or other network problems, auto reconnect to be successful connect.
If server response code error status, and has HTTP header
Retry-After
,retry send this request, after time specified value in header.
What do you think about it?
The text was updated successfully, but these errors were encountered: