-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If already connected it shows another prompt for selecting account #3603
Comments
I believe the issue is triggered by Metamask. |
Maybe, but what would u suggest? In my experience, MetaMask need at least 1 month to fix something. IMO it's a low chance they will prio this task just because of wagmi. On the other hand, wagmi introduced this UX breaking change. So I can't upgrade libs (wagmi/ viem to v2) till this is fixed. |
This is intentional. Since MetaMask (and some other wallets do not support disconnect), Wagmi shims this behavior. When you connect after disconnecting, Wagmi attempts to show the account selector just like when you connect for the first time. |
@tmm Is there a way to make it work like in v1? Why |
Feel free to open a PR that disables this when |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest wagmi version. If you have any other comments you can create a new discussion. |
Describe the bug
connect
shouldn't show prompt for selecting account if already connected. In MetaMask it makes 2 extra popups every time user log in a dApp, this makes UX confusing.Glitch helped to find this: https://github.com/wevm/wagmi/blob/main/packages/core/src/connectors/injected.ts#L154C38-L154C87
Link to Minimal Reproducible Example
No response
Steps To Reproduce
https://lab.web3modal.com/library/wagmi/
Please check the video:
https://github.com/wevm/wagmi/assets/9456433/f80a2631-91ea-4be9-ab48-ce4c08b0456e
Wagmi Version
@wagmi/core 2.6.5, wagmi/connectors 4.1.14
Viem Version
2.7.9
TypeScript Version
I don't use TypeScript
Check existing issues
Anything else?
No response
The text was updated successfully, but these errors were encountered: