You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of replacing our approval/writeContract (useSimulateContract/useWriteContract) flow with batched transactions using useSendCalls and useWaitForCallsStatus. While the happy flow works great, I'm having difficulties to spot when a user cancels his signature in the wallet and thus ends up the process. I have tried to hook into the different onError callbacks from useSendCalls, useSendCallsSync or useWaitForCallsStatus, but it seems they are not triggered as I would expect.
What is the best way to detect this situation in order to update the UI of my app?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm in the process of replacing our approval/writeContract (
useSimulateContract/useWriteContract) flow with batched transactions usinguseSendCallsanduseWaitForCallsStatus. While the happy flow works great, I'm having difficulties to spot when a user cancels his signature in the wallet and thus ends up the process. I have tried to hook into the differentonErrorcallbacks fromuseSendCalls,useSendCallsSyncoruseWaitForCallsStatus, but it seems they are not triggered as I would expect.What is the best way to detect this situation in order to update the UI of my app?
Beta Was this translation helpful? Give feedback.
All reactions