connection.connector.getChainId is not a function #4216
Unanswered
Sahitya777
asked this question in
Q&A
Replies: 1 comment 2 replies
-
we are also running into this @Sahitya777 ... looks like a bug. did you create an issue in the wagmi repo? i'd like to upvote it if it's there... thanks. |
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
-
So the issue is that I have one base route in my application as /v1 where I have a modal for wallet connects and when the user connects the wallet I send him to other route like /home where the wallet stays connected by connectWagmi({ connector:wagmiConnectors[0] })
But the thing is If i refresh the page the write calls start to fail and give error of connection.connector.getChainId is not a function Idk why it is happening
This is my config
const config = createConfig(
getDefaultConfig({
// Your dApps chains
chains: [baseSepolia],
transports: {
// RPC URL for each chain
[baseSepolia.id]: http(
),
},
);
Beta Was this translation helpful? Give feedback.
All reactions