Skip to content
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

Aborting pending requests #11

Open
mbajur opened this issue May 25, 2017 · 3 comments
Open

Aborting pending requests #11

mbajur opened this issue May 25, 2017 · 3 comments

Comments

@mbajur
Copy link

mbajur commented May 25, 2017

Hello!

I'm not sure if that's a responsibility of this lib or not but i'm building a search widget based on graphql server and graphql.js lib and was wondering - is there any way to abort/cancel pending request done by graphql.js?

Sometimes user changes his query during load of a previous query which generates two parallel requests and leads to weird results. It would be great to be able to run some abort() method on mutate() or query() instance to kill the request.

Thanks!

@f
Copy link
Owner

f commented May 25, 2017

That makes sense!

@rafaels88
Copy link

Looking forward on having abort()

@trevlar
Copy link

trevlar commented May 4, 2018

This would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants