You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using web3-react to connect to Metamask and it works perfect, I am able to get the accounts and balances from the connector. However, I found the deactivate method in the connector instance is always undefined. I have put my code as below, the if (connector.deactivate) { condition is always false.
Having the same problem... deactivate is always undefined, which makes it impossible to disconnect?
I assume this repo is dead at this point. Thanks, Uniswap.
FWIW - I run my own logic for auto-connecting, so in my disconnect button I disable the auto-connect and reload the page, which seems to be working. Absolutely not ideal, but maybe it will help somebody.
I am using
web3-react
to connect to Metamask and it works perfect, I am able to get the accounts and balances from the connector. However, I found thedeactivate
method in the connector instance is alwaysundefined
. I have put my code as below, theif (connector.deactivate) {
condition is alwaysfalse
.Is there anything I did wrong?
The text was updated successfully, but these errors were encountered: