-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Lost connect after switch metamask network a few times #709
Comments
+1 also seeing this issue. Very easily reproducible by switching between polygon and optimism |
I'm still tracking it down, I'll jot down my findings so far. Only chains that it messes up on. All testnets mostly, but Optimism Goerli is fine, and the mainnet messes up. What I've noticed is when switching to these chains, they do no get flagged as isActivating like the others. This is a MetaMask only bug, Coinbase Wallet is fine. I know MetaMask can miss requests if they are fired off to fast, wonder if it's something like that. This is a bug in MM and has nothing to do with Web3React. We may be able to do something to reconnect when it happens in this library, but really MM needs to fix their extension. MetaMask github |
Have a fix for this in this PR. Ended up catching MM's error on disconnect, and if it is error 1013, I don't reset state for the connector. |
I have use v8 beta for a while, but there is a bug here. Just try these steps:
PS: It's ok on v6.
The text was updated successfully, but these errors were encountered: