bug: Changing the networks
Is there an existing issue for this?
- [X] I have searched the existing issues
Package Version
2.7.3
Current Behavior
Our dapp has Eth, Linea, Aurora and we try to add Blast.
If the user was connected to mainnet, aurora or linea and login out then request for blast not working and failing with error no data (0x)
If the user connected to blast and login out, then view request for mainnet, aurora or linea not working
https://www.youtube.com/watch?v=NLXZgR9Myiw
also there is strange behavior for publicClient for Linea - it stop working when I was trying to create separate publicClients for resolving my issue.
Expected Behavior
View methods working well for all users despite the network he was connected before.
Steps To Reproduce
- connect wallet, switch network to any from Ethereum, Aurora, Linea, disconnect wallet - switch wallets and get the view request under the Ethereum, Aurora, Linea - everything works fine, switching the Blast will return uknown error.
- connect wallet, switch network to Blast, disconnect the wallet - view request will load information ONLY from Blast. Ethereum, Aurora, Linea view request will show the error
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
No response
Anything else?
"viem": "^2.7.3",
"wagmi": "^2.5.5",
"@tanstack/react-query": "^5.18.0",
"@wagmi/core": "^2.6.3",
"@web3modal/wagmi": "4.0.0-alpha.3",
Please create a new issue on the Wagmi repo with a minimal reproduction.
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread.