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
When wagmi is used with rainbowkit, it seems that rainbowkit will force the user to switch to the first network listed in the array passed to configureChains, but only if the user is currently connected to a network that is not included in that list.
I prefer to use and write dapps that only ask the user to switch to the network when absolutely necessary - i.e. submitting a transaction.
In order to achieve this UX with wagmi and rainbowkit, I import individually every network exported by the chains package. It would be a nice convenience to be able to import allChains in an array such that i dont have to manually update my list as new chains are added.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When wagmi is used with rainbowkit, it seems that rainbowkit will force the user to switch to the first network listed in the array passed to
configureChains
, but only if the user is currently connected to a network that is not included in that list.I prefer to use and write dapps that only ask the user to switch to the network when absolutely necessary - i.e. submitting a transaction.
In order to achieve this UX with wagmi and rainbowkit, I import individually every network exported by the chains package. It would be a nice convenience to be able to import allChains in an array such that i dont have to manually update my list as new chains are added.
Beta Was this translation helpful? Give feedback.
All reactions