You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getWalletConnectors returns some rainbowkit providers except metamask and brave (which appear as installed due to multiInjectedProviderDiscovery being enabled by default)
The problem is that if I connect my MetaMask, disconnect and refresh the page - the connection to metamask is persisted, but it should be kept disconnected as shimDisconnect is true by default. And here's where things get weird. Every disconnect + refresh updates local storage with new entry:
wagmi.<random wallet name>.disconnected: true
I disconnect, refresh and again - new entry with random wallet I haven't even used appears. After disconnecting a few times, it starts working as expected - the connection is lost until I connect manually. Can someone tell me what's going on? :D
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.
Describe the bug
Hey pals, i'm using RainbowKit in my app and this is my config
getWalletConnectors
returns some rainbowkit providers except metamask and brave (which appear as installed due tomultiInjectedProviderDiscovery
being enabled by default)The problem is that if I connect my MetaMask, disconnect and refresh the page - the connection to metamask is persisted, but it should be kept disconnected as
shimDisconnect
is true by default. And here's where things get weird. Every disconnect + refresh updates local storage with new entry:wagmi.<random wallet name>.disconnected: true
I disconnect, refresh and again - new entry with random wallet I haven't even used appears. After disconnecting a few times, it starts working as expected - the connection is lost until I connect manually. Can someone tell me what's going on? :D
Even if you go to https://www.rainbowkit.com/docs/introduction I have to disconnect 2 times to make it work 🤔
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
Wagmi Version
2.5.7
Viem Version
2.7.19
TypeScript Version
No response
Check existing issues
Anything else?
No response
The text was updated successfully, but these errors were encountered: