wagmi icon indicating copy to clipboard operation
wagmi copied to clipboard

fix: prevent reconnect prompt when calling `connect`

Open 0xmkh opened this issue 7 months ago • 4 comments

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

0xmkh avatar May 12 '25 09:05 0xmkh

⚠️ 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

changeset-bot[bot] avatar May 12 '25 09:05 changeset-bot[bot]

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

vercel[bot] avatar May 12 '25 09:05 vercel[bot]

How do you reproduce this behavior?

tmm avatar May 12 '25 16:05 tmm

@tmm try connecting to metamask -> connect to trust and connect to metamask again. You'll be prompted to connect your wallet again

0xmkh avatar May 13 '25 14:05 0xmkh

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.

tmm avatar Aug 26 '25 01:08 tmm