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

Subscription doesn't update records after mutation #2853

Closed
3 tasks done
cinan opened this issue Dec 5, 2022 · 0 comments · Fixed by #2861
Closed
3 tasks done

Subscription doesn't update records after mutation #2853

cinan opened this issue Dec 5, 2022 · 0 comments · Fixed by #2861

Comments

@cinan
Copy link

cinan commented Dec 5, 2022

Describe the bug

Hello!

I believe I found a bug in urql subscriptions. I prepared a simple list, where users can add new records and rename existing ones. After a user creates a new record and after that they hit "Rename" button, updated results won't show up. The "Rename" button calls standalone gql client (not urql) just to simulate external source of change -- this way I'm sure urql doesn't know about mutation been called and so urql must update cache from subscription.

I also attached video:

Screen.Recording.2022-12-05.at.11.33.28.mov

Or am I doing something wrong?

Reproduction

https://github.com/cinan/urql-cache

Urql version

@urql/exchange-graphcache: 5.0.5
urql: 3.0.3

Validations

  • I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • Read the docs.
  • Follow our Code of Conduct
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

Successfully merging a pull request may close this issue.

1 participant