Replies: 1 comment
-
Solved. I was looking at wrong place of documentation. I landed to api references instead of React hooks. I used react hook and problem is solved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to show switch network button and for this I need to check if network/chain has been changed by the user (for example from metamask he/she changes network) other than the supported network defined in wagmi config file.
So if user is not connected to wallet. It will show connect button.
If user is connected to wallet and on supported network, it will not show switch network button
But if user is connected and on wrong network or he changes afterwards, I want to show switch network button.
I am using Rainbowkit.
I tried with
but not able to detect the change.
Beta Was this translation helpful? Give feedback.
All reactions