Skip to content

Autoconnect issue with wallets after page reload #1138

Description

@yasha-meursault

Describe the bug
Some Solana wallet connectors (with readyState = loadable) trigger the wallet extension popup on page load after a cancelled connection attempt.

To Reproduce
If a user selects a wallet, cancels the extension’s connect popup, and then reloads the page, the wallet popup opens again automatically without any new user interaction. pick WalletConnect or Solflare

Desktop (please complete the following information):

  • OS: macOS Tahoe 26.2
  • Browser Chrome 143.0.7499.193 (Official Build) (arm64)
Screen.Recording.2026-01-20.at.18.56.44.mov

Additional context
its important to have autoconnect as true

import {  WalletProvider }  from "@solana/wallet-adapter-react";
function SolanaProvider({ children }: { children: ReactNode }) {
    const endpoint = useMemo(() => clusterApiUrl(SOLANA_NETWORK), [SOLANA_NETWORK]);

    return (
        <ConnectionProvider endpoint={endpoint}>
            <WalletProvider wallets={adapters} autoConnect={true}>
                {children}
            </WalletProvider>
        </ConnectionProvider>
    );
}

also the same issue with not proceeding connecting and showing the popup after the page load is present in the Wallet Adapter Example https://anza-xyz.github.io/wallet-adapter/example/

video
https://github.com/user-attachments/assets/8e4e4d7b-5cbd-441a-ac66-d29e4294f173

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions