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

[Feature Request] Support optimistic updates for Upsert queries #1750

Closed
priyanka-sadhwani opened this issue Sep 27, 2024 · 0 comments
Closed
Milestone

Comments

@priyanka-sadhwani
Copy link

Is your feature request related to a problem? Please describe.
We use the Upsert hooks a lot in our frontend, however optimistic updates do not work for these hooks. Feature request is to add support for optimistic updates in Upsert hooks.

Describe the solution you'd like
The optimistic update options works for Upsert queries, as it does for Create/Update. i.e. the query cache is updated while the API query is pending.

Describe alternatives you've considered
Alternatives would be use Create / Update, however this would cause extra complication in our codebase as we could need to check if the object exists first.

@jiashengguo jiashengguo added this to the v2.6.x milestone Sep 28, 2024
@ymc9 ymc9 modified the milestones: v2.6.x, v2.7.0 Oct 1, 2024
ymc9 added a commit that referenced this issue Oct 9, 2024
@ymc9 ymc9 closed this as completed Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants