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

[v3] Defer/Stream Source is not canceled #2036

Closed
Tracked by #1358
n1ru4l opened this issue Nov 8, 2022 · 1 comment
Closed
Tracked by #1358

[v3] Defer/Stream Source is not canceled #2036

n1ru4l opened this issue Nov 8, 2022 · 1 comment
Milestone

Comments

@n1ru4l
Copy link
Collaborator

n1ru4l commented Nov 8, 2022

Describe the bug

A Stream/Defer source is not canceled (return is called on it) when I execute a GraphQL operation via GraphiQL.

Your Example Website or App

https://codesandbox.io/s/brave-sun-wy8irb?file=/src/main.ts

Steps to Reproduce the Bug or Issue

  1. Open CodeSandbox
  2. Start GraphQL Server
  3. Visit the GraphiQL Route
  4. Execute the operation query StreamAlphabet { alphabet @stream }
  5. Cancel the operation midway

Expected behavior

No further publish <character> console logs occur.
cancel is logged immediately.

Screenshots or Videos

Uploading Screen Recording 2022-11-08 at 09.10.18.mov…

Platform

  • OS: CodeSandbox
  • NodeJS: v14.19.3
  • @graphql-yoga/* 3.0.0-next.10

Additional context

No response

@n1ru4l n1ru4l added this to the v3 milestone Nov 8, 2022
@theguild-bot theguild-bot mentioned this issue Nov 8, 2022
@n1ru4l
Copy link
Collaborator Author

n1ru4l commented Nov 8, 2022

Screen.Recording.2022-11-08.at.09.10.18.mov

@ardatan ardatan closed this as completed Nov 11, 2022
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