How to listen for account change? (Solved) #1806
Unanswered
Ian-Bright
asked this question in
Q&A
Replies: 4 comments 14 replies
-
FYI You can use the following:
|
Beta Was this translation helpful? Give feedback.
6 replies
-
If you happen to find a solution please also post if for everyone else |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey, can you share the previous discussion you mentioned on the edit? Can't find it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
An even simpler solution:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a hook where we can detect an account change? Specifically I'd like to force a disconnect if I user switches accounts on metamask while connected on one account
--EDIT: Nevermind found in a prior discussion
Beta Was this translation helpful? Give feedback.
All reactions