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
Hi, I'm trying to add different chains (Binance and Avax) and want the user to be able to switch between them using the useNetwork hook. After I've added the chains I wish to use it doesn't reflect (it says unsupported). When I then console.log(data) I only see the default chains and the chains that I've added is nowhere to be found. Help will be much appreciated. Here is my code.
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
-
Hi, I'm trying to add different chains (Binance and Avax) and want the user to be able to switch between them using the useNetwork hook. After I've added the chains I wish to use it doesn't reflect (it says unsupported). When I then console.log(data) I only see the default chains and the chains that I've added is nowhere to be found. Help will be much appreciated. Here is my code.
Codesandbox: link
and in my other file I just imported the useNetwork hook and console.log(data) and get the following:
Beta Was this translation helpful? Give feedback.
All reactions