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

Cancel a request #189

Open
MrTeapot opened this issue Sep 12, 2022 · 1 comment
Open

Cancel a request #189

MrTeapot opened this issue Sep 12, 2022 · 1 comment

Comments

@MrTeapot
Copy link

Hey!

I have a use case where I have a textbox that triggers a graphql query on input (debounced 300ms).
It's neccessary to cancel previous requests and only handle the last one, to prevent a race condition

Can this be achieved with this library in its current state or should this be considered a feature request? :)

Thanks in advance.

@Diizzayy
Copy link
Owner

@MrTeapot This isn't currently support out of the box, though you can implement the logic in your script by monitoring the input then only sending the request if it is indeed the last

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

2 participants