[bug] getIsConnected()
returns false
when user is logged in when called on page load
#2163
Labels
getIsConnected()
returns false
when user is logged in when called on page load
#2163
Link to minimal reproducible example
https://codesandbox.io/p/sandbox/mystifying-mirzakhani-xqnkt3
Summary
If you want to check if a user is connected to web3modal when the page loads, it returns false even though they are. If you set a timeout and make the call after one second, then it registers that a user is connected.
Is this the expected behavior? Is there an alternative for how to know on page load / modal initialization if a user is connected without using a timeout? (even though the reproducible example above is using react as a quick demonstration, I'm using JS https://docs.walletconnect.com/web3modal/javascript/about)
List of related npm package versions
@web3modal/[email protected]
[email protected]
The text was updated successfully, but these errors were encountered: