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.