Disconnects the wallet and reports that transition. No error: a disconnect always settles, by the timeout if the wallet never answers.
error
with no CantonConnectProvider above it, as every hook here does.
const { disconnect, isPending } = useDisconnect()<button onClick={() => void disconnect()} disabled={isPending}> Disconnect</button> Copy
const { disconnect, isPending } = useDisconnect()<button onClick={() => void disconnect()} disabled={isPending}> Disconnect</button>
Disconnects the wallet and reports that transition. No
error: a disconnect always settles, by the timeout if the wallet never answers.