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
*I've installed client v0.1.1 and wagmi-connectors v1.0.0 and appChainIds property in the metadata object for createConnectorFromWallet is not recognized, so I removed it. Here's the error message:
Object literal may only specify known properties, and 'appChains' does not exist in type 'StrictOmit<AppMetadata, "appChainIds">'.
This error msg is at odds with the docs example.
Expected behavior
Connector switches chain and useChainId returns the updated chain ID.
The chain ID will switch only after a hard refresh in Expo Go
Version
client v0.1.1, wagmi-connectors v1.0.0
Additional info
No response
Desktop
No response
Smartphone
Device: iPhone 13
OS: iOS 17.6.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Unable to switch chain ID using wagmi's useSwitchNetwork
Steps
switchChain
to baseSepolia.id (assuming we are connected to base mainnet)chainId
in the console usinguseChainId
hook to confirm chain ID has not switched.I've created a reproducible example here: https://github.com/mrosendin/smart-wallet-expo-switchChain
*I've installed client v0.1.1 and wagmi-connectors v1.0.0 and
appChainIds
property in the metadata object forcreateConnectorFromWallet
is not recognized, so I removed it. Here's the error message:This error msg is at odds with the docs example.
Expected behavior
Connector switches chain and
useChainId
returns the updated chain ID.The chain ID will switch only after a hard refresh in Expo Go
Version
client v0.1.1, wagmi-connectors v1.0.0
Additional info
No response
Desktop
No response
Smartphone
The text was updated successfully, but these errors were encountered: