isActive always false when activating with two injected providers (MetaMask and WalletLink) #445
Unanswered
earthtojake
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Update: This is only a problem when you connect to MetaMask with WalletLink installed, but connecting to WalletLink with MetaMask installed works |
Beta Was this translation helpful? Give feedback.
0 replies
-
hm, i'm not sure it's worth trying to handle the case when a user has two extensions both injecting to window.ethereum - seems fairly uncommon and kind of an anti-pattern |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When there are two injected providers installed in the browser, e.g. MetaMask and WalletLink, and a user accepts one connection and rejects the other (common flow), the rejected connection throws an error and
isActive
state is not set to true for the accepted connector. This also blocks network switch requests which should appear after the connection is accepted.isActive
state fixes itself on refresh. Can't find a reliable workaround.This bug should probably be fixed with handling of multiple injected connectors, there's another issue here: #300
IMO multiple popups for injected connectors is pretty confusing UX and I don't think it should be the default.
The mustBeMetaMask flag for MM also doesn't fix the issue.
Beta Was this translation helpful? Give feedback.
All reactions