Replies: 1 comment 6 replies
-
What do you think about adding a There might be some edge cases around disconnecting directly through the MM UI that we'll want to make sure are handled. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today in autoConnect mode if you use wallet connect
with metamask/injected provider
this is for sure a limitation with MM as discussed in
#68 but one way I can think we can create a same behavior as walletConnect is by making a few changes to how it is connected on mount https://github.com/tmm/wagmi/blob/0336e9aa7a2acdd4a75214fe0be551bd47f42e77/packages/react/src/context.ts#L110 would need to store an additional variable in local storage and check it to avoid autoConnect on page refreshes for injectedProviders.
edit: if this is of interest I can send in a PR cause this makes the functionality more consistent.
Beta Was this translation helpful? Give feedback.
All reactions