Skip to content
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

[bug] useDisconnect not disconnecting from Metamask #684

Closed
1 task done
dhavalsoni2001 opened this issue Jul 8, 2022 · 2 comments
Closed
1 task done

[bug] useDisconnect not disconnecting from Metamask #684

dhavalsoni2001 opened this issue Jul 8, 2022 · 2 comments

Comments

@dhavalsoni2001
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

0.4.12

Current Behavior

Whenever I connect one Metamask account and then disconnect it still shows connected on metamask.
Screenshot 2022-07-08 at 9 39 32 PM

Expected Behavior

It should be disconnected from the Metamask.

Steps To Reproduce

  • Login with Metamask,
  • useDisconnect method to log out,
  • Check Metamask it still shows connected, it should show Not. Connected

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

@tmm
Copy link
Member

tmm commented Jul 8, 2022

MetaMask doesn't support programmatic disconnect. wagmi simulates this with the shimDisconnect and UNSTABLE_shimOnConnectSelectAccount flags.

@tmm tmm closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2022
Copy link
Contributor

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants