-
I've faced a problem that after mutation isLoading got back to false after the onSuccess callback fired. However to my mind it should be changed before. example
Any idea ? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jun 19, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
egorovsa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
isLoading
that was desctructured fromuseMyFooQuery
will update on the next re-render, so no, you can't read it in callbacks (that are executed before the re-render) and expect to have changed.