web3-react icon indicating copy to clipboard operation
web3-react copied to clipboard

MetaMask connector.deactivate is not a function

Open zero-ims opened this issue 2 years ago • 5 comments

I try to call the MetaMask deactivate method, but report connector.deactivate() is not a function error

The same method coinbase can execute connector.deactivate() normally

image

zero-ims avatar Jun 07 '23 10:06 zero-ims

I would like to work on this @zero-ims

ashutosh887 avatar Jun 11 '23 10:06 ashutosh887

to disconnect Metamask you have to call connector.resetState(), check first if the connector is Metamask and if that's the case use the appropriate method 👌

bloodylupin avatar Jul 24 '23 10:07 bloodylupin

I have the same issue. resetState() does not close the connection. It is getting connected again. Anyone can help?

hakankozakli avatar Jul 27 '23 16:07 hakankozakli

+1

dospore avatar Aug 29 '23 16:08 dospore

I have the same issue.

rulifeng avatar Oct 26 '23 09:10 rulifeng