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

Option for optimistic updates #1730

Closed
shuding opened this issue Dec 23, 2021 Discussed in #1721 · 2 comments
Closed

Option for optimistic updates #1730

shuding opened this issue Dec 23, 2021 Discussed in #1721 · 2 comments
Labels
feature request New feature or request

Comments

@shuding
Copy link
Member

shuding commented Dec 23, 2021

Discussed in #1721

Originally posted by SevenOutman December 23, 2021
While there's example of making optimistic update with two separate mutate calls, why not add a new mutate signature to act as a shortcut?

mutate(newUser, updateUser(newUser), false)

// Equivalent to

mutate(newUser, false)
mutate(updateUser(newUser), false)
```</div>
@shuding shuding added the feature request New feature or request label Dec 23, 2021
@koba04
Copy link
Collaborator

koba04 commented Jan 12, 2022

This seems to be added as the optimisticData option in #1745 🚀

@shuding
Copy link
Member Author

shuding commented Jan 12, 2022

Yep, gonna close this issue, thanks!

@shuding shuding closed this as completed Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants