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

Persist mutations locally only when the request complete successfully #154

Open
swouf opened this issue Aug 7, 2023 · 0 comments
Open
Labels
question Further information is requested

Comments

@swouf
Copy link
Contributor

swouf commented Aug 7, 2023

          I removed it because actually, the patch already happens in the `onMutate` callback. However, it makes me wonder if we shouldn't move this to the `onSuccess` so that patch events are locally persisted only if the request is completed successfully.

Originally posted by @swouf in #142 (comment)

@swouf swouf added the question Further information is requested label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant