-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Disconnect Wallet] Disconnect wallet seems like a dummy feature and doesn't work the way it's supposed to work. #69
Comments
It works fine for WalletConnect and WalletLink. MetaMask (and some other injected providers) don't support programmatically disconnecting. Check out this comment for more info. I also commented on an issue in the MetaMask repo to see if development of this feature can continue. |
@tmm Thank you for the reply, hope metamask fixes this soon! |
Did you solve this issue? I get same issue and I need to solve that. What can I do? |
1 similar comment
Did you solve this issue? I get same issue and I need to solve that. What can I do? |
@murathanje @Deveshb15
|
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest wagmi version. If you have any other comments you can create a new discussion. |
Is there an existing issue for this?
Package Version
0.0.17
Current Behavior
The disconnect wallet feature from the useAccount hook doesn't seem to disconnect the wallet completely and just shows that it is disconnected on the client side as I have autoconnect enabled while declaring the Provider in the App.js even after disconnecting the wallet if I reload the app it gets connected to the account that I connected previously.
Expected Behavior
The disconnect feature should remove the app from the metamask connected sites of the user is what I believe and I'm not sure if its possible but what I've seen other packages do is they change the account state to undefined and even after a reload it stays undefined unless and until the user connects wallet again.
Steps To Reproduce
Codesandbox link:- https://codesandbox.io/s/thirsty-butterfly-6i0ct
Anything else?
No response
The text was updated successfully, but these errors were encountered: