Jotai query; optimistic updates with rollback on error #3177
-
|
How would you implement the tanstack query optimistic update example with rollbacks on error? The callback signatures in Already posted it here, but couldn't reopen the discussion: #2114 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
Hi @tomschulze I've confirmed the latest jotai-query and can get onMutateResult.
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your clarifications. It does work. |
Beta Was this translation helpful? Give feedback.

Hi @tomschulze
I've confirmed the latest jotai-query and can get onMutateResult.
Here is an example:
https://github.com/jotaijs/jotai-tanstack-query/pull/141/files#diff-f6a0723e83fb241929dd88502e6a94e2755771b29232c7d39b7400a82122c1baR79-R88