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

feat: add shim for metamask chain change disconnect #190

Merged
merged 2 commits into from
Feb 20, 2022

Conversation

tmm
Copy link
Member

@tmm tmm commented Feb 19, 2022

MetaMask 10.9.3 emits disconnect event when chain is changed. MetaMask/metamask-extension#13375 (comment)

This flag disables the disconnect event and relies on the accountsChanged event for updating wallet connection. This workaround is experimental and might result in stale connections.

@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2022

🦋 Changeset detected

Latest commit: 09e2870

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wagmi-private Patch
wagmi Patch
wagmi-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Feb 19, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/zoo/wagmi/68C8PiPRNXHvxsCAQQf1C54ARMdx
✅ Preview: https://wagmi-git-tmm-mm-chain-changed-disconnects-zoo.vercel.app

@tmm tmm merged commit 7034bb8 into main Feb 20, 2022
@tmm tmm deleted the tmm/mm-chain-changed-disconnects branch February 20, 2022 00:02
@github-actions github-actions bot mentioned this pull request Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant