Skip to content

The accountChanged event is not triggering when switching accounts directly from Phantom Wallet. This issue occurs in a React + Vite project using @solana/wallet-adapter. #1069

@Ritikchhipa5

Description

@Ritikchhipa5

The accountChanged event is not triggering when switching accounts directly from Phantom Wallet. This issue occurs in a React + Vite project using @solana/wallet-adapter.

Steps to Reproduce
1️⃣ Connect Phantom Wallet to the app.
2️⃣ Switch to another account inside Phantom Wallet.
3️⃣ The UI does not update, and accountChanged is not triggered.

Expected Behavior
The app should detect the account change and update the UI with the new public key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAdd this to close an issue with instructions on how to repost as a question on Stack Exchange

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions