Canton dAppBooster
    Preparing search index...
    • 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.

      Returns UseConnectResult

      with no CantonConnectProvider above it, as every hook here does.

      const { connect, isPending } = useConnect()
      <button onClick={() => void connect().catch(() => undefined)} disabled={isPending}>
      Connect
      </button>