isSuccess correct value to check response in trpc?
Hello I am wondering if
isSuccess
is the proper value which I should check once I call my mutation. Sometimes the function inside the isSuccess
condition does not run, even if my mutation was successful.
Any idea how to improve that?
10 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
so what the difference between isSuccess on onSuccess
confuses me 😄
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
you sure there is a onSuccess method?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ohh
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Got it like this then
But still not sure if I need to use await
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ty 🙂