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

Graphcache 6 executes offline mutations twice #3142

Closed
3 tasks done
Psvensso opened this issue Apr 11, 2023 · 0 comments · Fixed by #3158
Closed
3 tasks done

Graphcache 6 executes offline mutations twice #3142

Psvensso opened this issue Apr 11, 2023 · 0 comments · Fixed by #3158

Comments

@Psvensso
Copy link

Describe the bug

When switching over to graphcache 6.0.0 we see that our mutations are fired twice after being offline.
Works fine with graphcache 5.2.0

Browser: Chrome

Repro steps:

  1. Open sandbox https://codesandbox.io/s/hungry-franklin-fw5w0s
  2. F12 > Network > Offline
  3. Click a todo item to issue a toggle mutation
  4. F12 > Network > No throttle

Expected:
toggle mutation to be sent once

Actual:
the toggle mutation is sendt twice to the server

Reproduction

https://codesandbox.io/s/hungry-franklin-fw5w0s

Urql version

"@urql/core": "4.0.4",
"@urql/exchange-graphcache": "6.0.0"

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