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

pressing stop button on GraphiQL does not cancel in-flight requests #3216

Open
n1ru4l opened this issue Mar 30, 2024 · 0 comments
Open

pressing stop button on GraphiQL does not cancel in-flight requests #3216

n1ru4l opened this issue Mar 30, 2024 · 0 comments

Comments

@n1ru4l
Copy link
Collaborator

n1ru4l commented Mar 30, 2024

When clicking the square button after executing a long-running query operation, the request is not canceled.

Reproduction:

  1. start app
pnpm run --filter example-request-cancelation start
  1. Open GraphiQL: http://localhost:4001/?query=%7B%0A++user+%7B%0A++++id%0A++++name%0A++++bestFriend+%7B%0A++++++id%0A++++++name%0A++++%7D%0A++%7D%0A%7D
  2. Press the play button
  3. immediately press the stop button
  4. after 5 seconds the query result is still appearing, on the dev tools we can see that the request did not get canceled

Expected behaviour:
The in-flight request is canceled


It seems like this is a missing feature within @graphql-tools/executor-http.

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

1 participant