Replies: 2 comments 5 replies
-
I think this should be an issue. But also, if not: What is the expected vs. actual behavior? I suppose you are not seeing the @tmm I would suggest that we will be adding a |
Beta Was this translation helpful? Give feedback.
-
I wonder if this is a similar category of issue - it looks like all of my hooks are running before I ever get a chainId - resulting in some funky behavior here's how I have it patched for now const provider = ({ chainId }: Config) => {
if (chainId === undefined) {
return null;
}
if (chainId === 1337) {
return new providers.JsonRpcProvider();
}
return providers.getDefaultProvider(
isChainSupported(chainId) ? chainId : chain.rinkeby.id,
{ infuraId, etherscanId }
);
}; |
Beta Was this translation helpful? Give feedback.
-
I kind of expected that on initial page load before the libraries have instantiated that the loading param in the hook would return true until it’s confirmed the user is connected or not.
Beta Was this translation helpful? Give feedback.
All reactions