-
The codes are the examples shown in the v5 doc on Optimistic Updates.
I am not trying to say that this is a wrong code. I know it works perfect. But I don't get why you put 'variables' instead of 'newTodo' when you have the value of newTodo.
What would be the problem with the code right above? I am talking about a situation where the mutation and query live in the same component. |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Nov 8, 2023
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sure