Open zhaoyi0113 opened 9 months ago
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?