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

Cannot bail out of an optimistic update #11662

Closed
TrevPennington opened this issue Mar 12, 2024 · 3 comments
Closed

Cannot bail out of an optimistic update #11662

TrevPennington opened this issue Mar 12, 2024 · 3 comments

Comments

@TrevPennington
Copy link

I am trying to bail out of an optimistic update using IGNORE as stated in the docs

However, the mutation doesn't even fire because apollo client does not recognize the args. Errors with message: [TypeError: Cannot read property 'IGNORE' of undefined]

Does anyone have success with bailing out of an optimistic update?
apollo-client version 3.8.7

@alessbell
Copy link
Contributor

Hi there @TrevPennington 👋

Thanks for opening this issue! Bailing out of an optimistic update landed in v3.9.0. That all important context was missing from the docs so I've just opened #11663 with the fix. Sorry about the confusion - I'll close this issue out, but if you run into any other issues let us know :)

Copy link
Contributor

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.

Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants