Jotai query; optimistic updates with rollback on error #3177
Answered
by
ThaddeusJiang
tomschulze
asked this question in
Q&A
|
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 |
Answered by
ThaddeusJiang
Nov 17, 2025
Replies: 3 comments 1 reply
1 reply
|
Hi @tomschulze I've confirmed the latest jotai-query and can get onMutateResult.
|
0 replies
Answer selected by
tomschulze
|
Thanks for your clarifications. It does work. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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