Support optimisticData
as a function
#1850
Unanswered
ludovic-montel
asked this question in
Ideas
Replies: 2 comments 1 reply
-
Thanks for writing this, I created an issue to track the progress in #1858. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This feature is implemented in #1861 by @huozhi. 🎉 Will cut a beta release soon! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, thanks a lot for this library. I've been using it for almost a year, and more intensively for several months, and I love it!
Il like to create optimistic user interfaces, and the new
optimisticData
option with its auto-rollback behavior is great!I'd like to push it a little further: could you support
optimisticData
as a function ? I think it would be consistent with themutate
first argument and with #1817.This function would take the cached data as parameter, and would allow:
mutate
functionAgain, thanks a lot for your work
Beta Was this translation helpful? Give feedback.
All reactions