Open vancelin opened 1 year ago
Hi @vancelin Thank you so much for your support ✨
Regarding a disconnect function, MetaMask doesn't support dApps disconnecting a wallet. Users need to do this from MetaMask itself.
How I usually handle disconnect is,
I have a disconnect button somewhere (dropdown, v-else with Connect button, Profile page, etc.) which when clicked will just remove the address and other information stored in variables or global state. Then the ConnectWalletButton
will be back to its original state showing "Connect Wallet".
However, in terms of the button UI of this package perhaps adding a disconnect red button state could be helpful? That can be as close as it gets to supporting it.
Hey, of course yes, if you can add a disconnect red button, that will be useful!
Hello, obviously I am a fan of this package, if you can add a disconnect function, that'll be great! thanks!