fix: prevent reconnect prompt when calling `connect`
Description
Fixes an issue where switching between wallets would prompt the user to connect again instead of overriding the existing connection. This improves both the UX and wagmi state
⚠️ No Changeset found
Latest commit: 69a8a88086b95a3d6d1d8e45923c4a2d755e9d5d
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| wagmi | 🛑 Canceled (Inspect) | May 12, 2025 9:33am |
How do you reproduce this behavior?
@tmm try connecting to metamask -> connect to trust and connect to metamask again. You'll be prompted to connect your wallet again
Not convinced this extra code is worth it as some wallets don't show a repeat prompt (MetaMask, Coinbase, etc.) while others do (Trust). Probably best handled on the wallet side or in your application code.