Replies: 2 comments 2 replies
-
Ah so if i debug a little more i can see the page load request goes to mainnet, but my second one goes to mumbai as expected? :| So if i hard code the chainId in my provider:
It works on page refresh too. So it's something to do with how this chainId is getting populated :| For reference my
and my
|
Beta Was this translation helpful? Give feedback.
0 replies
-
OK so this seems to work:
Which kind of makes sense, following a page refresh i should only get the balance after connected. Is this the correct pattern? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, I apologise if this is a super stupid question - I'm new to both react (in this case remix) and wagmi :) So i'm learning!
I have a simple component mostly taken from the wagmi documentation/examples.
loaderData.session.data.address
= an address on the matic mumbai polygon testnet. I have my provider setup correctly for alchemy on the matic testnet.On the first load of the page (eg if i hit F5), it seems to load ETH:
However if I click the button "Update Balance", it correctly updates to my MATIC balance:
It's super weird because i can see the requests in alchemy, and they look identical:
I really can't sus out why this is the case 🤷 so any help would be appreciated. It's likely my coding, rather than a bug!
Beta Was this translation helpful? Give feedback.
All reactions