useAccount returns wrong MetaMask address #1523
Unanswered
namnguyen2496
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used Family's
connectkitto connect our app with a MetaMask account and wagmi'suseAccounthook to get the address of the connected wallet.useAccounthook only returns the new MetaMask address after I hard refresh our page.This issue only happens when switching between 2 MetaMask acconts. Switching between MetaMask and another wallet (e.g: Coinbase) worked as expected.
What I have attempted:
localStoragebefore I calleduseAccounthook.MetaMaskconnector to our wagmi config:Beta Was this translation helpful? Give feedback.
All reactions