-
Notifications
You must be signed in to change notification settings - Fork 23
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
A couple of issues/comments/suggestions #12
Comments
@helfer do you happen to have a pull request or example code to implement your suggestion 1. above? I just found a bug when using I have a hacky patch that fixes this by removing the controller in the timeout function:
Do you have a cleaner fix for this? Is it worth sending my hack as a PR? |
@helfer Do you have any idea who I should contact in the Apollo organization regarding them possibly taking over this repo? Given the number of downloads of this module, I think it definitely deserves someone that can maintain it and possibly implement your suggestions above. Thanks! |
remove the AbortController from the operation context. Once an AbortController fires, it is permanently "used up" and will cause any future retry of the operation to fail immediately. This causes trouble if you combine `apollo-link-timeout` with a retry system like `apollo-link-retry`. See discussion in issue drcallaway#12.
PR sent, and kudos to @drcallaway for writing this in the first place :). It's extremely helpful in dealing with bad mobile network conditions. |
Thanks for writing and maintaining this package, @drcallaway! I want to use it in a project but this issue made me a little wary. |
Hi @drcallaway 👋 nice repo!
I ran across this when trying to help some other people, and I noticed a couple of things that I think should be fixed/improved, especially since this is a link that seems to be used by a decent number of people.
fetch
request breaks the link abstraction. One link shouldn't be concerned with and/or reach into the internals of another link (in this case the http link). Doing so violates assumptions made by other links. The proper way for an observable to cancel a request is to simply unsubscribe and let the cancellation propagate through the chain in an orderly fashion. apollo-link-http already aborts the request if you unsubscribe from it, so nothing more should be needed. If it doesn't work as expected, then it's a bug that should be fixed in apollo-link-http.timeoutRef
should just unsubscribe instead of reaching in.Since this is a really useful package, I hope you have the time and motivation to maintain it. If not, it might also be possible to hand the package over to the Apollo maintainers, if they're inclined to look after it.
The text was updated successfully, but these errors were encountered: