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
I checked there isn't already an issue for the bug I encountered.
Describe the bug
I am connecting an app through Metamask Extension. Now When I Connect using connect method in response of method it returns array of an accounts which has one entry. But when I see logs using watchConnections method there are two entries.
What happenes really is watchConnection calls twice when I click on Confirm from Extension, watchConnections triggers and returns one entry when connect method returns success it got triggered again and returns two connections entries however both entries are identical.
I noticed one thing, whenever wagmi.recentConnectorId is present in localstorage this issue happens, when I do refresh this variable got removed and i am getting only one connections in watchConnections.
Because of this issue, User needs to click on disconnect twice. I tried using latetse wagmi/core package but it still happens.
Here is my Metamask connector config and I am using an Angular 18: export const metaMaskConnector = metaMask({ preferDesktop: true, extensionOnly: true })
Thanks and Regards,
Aryan
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
@wagmi/core
Wagmi Package(s) Version(s)
2.10.5
Viem Version
2.9.32
TypeScript Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Hey @jxom Please check the issue here! [https://stackblitz.com/edit/stackblitz-starters-zacwasgz?file=src%2Fmain.ts]. Please check the console under name Account Coonections.
Check existing issues
Describe the bug
I am connecting an app through Metamask Extension. Now When I Connect using connect method in response of method it returns array of an accounts which has one entry. But when I see logs using watchConnections method there are two entries.
What happenes really is watchConnection calls twice when I click on Confirm from Extension, watchConnections triggers and returns one entry when connect method returns success it got triggered again and returns two connections entries however both entries are identical.
I noticed one thing, whenever wagmi.recentConnectorId is present in localstorage this issue happens, when I do refresh this variable got removed and i am getting only one connections in watchConnections.
Because of this issue, User needs to click on disconnect twice. I tried using latetse wagmi/core package but it still happens.
Here is my Metamask connector config and I am using an Angular 18:
export const metaMaskConnector = metaMask({ preferDesktop: true, extensionOnly: true })
Thanks and Regards,
Aryan
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
@wagmi/core
Wagmi Package(s) Version(s)
2.10.5
Viem Version
2.9.32
TypeScript Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: