Connects the wallet and reports that transition. connect takes no argument: the picker chooses the wallet, so there is no mode to pass. Gate a pending face on isPending and session-dependent content on useAccount().account, not on isConnected.
connect
isPending
useAccount().account
isConnected
with no CantonConnectProvider above it, as every hook here does.
const { connect, isPending } = useConnect()<button onClick={() => void connect().catch(() => undefined)} disabled={isPending}> Connect</button> Copy
const { connect, isPending } = useConnect()<button onClick={() => void connect().catch(() => undefined)} disabled={isPending}> Connect</button>
Connects the wallet and reports that transition.
connecttakes no argument: the picker chooses the wallet, so there is no mode to pass. Gate a pending face onisPendingand session-dependent content onuseAccount().account, not onisConnected.