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
Version: "@starknet-react/core": "^3.6.2"
Using the Argent Chrome extension
Description:
There appears to be an issue on page load when updating the account address with the useAccount() hook. Specifically, the wallet correctly connects and the connected connector updates, but the wallet address cannot be read from the account object returned from the useAccount() hook. If the wallet is not connected on page load and I manually call connect() from the useConnect() hook, account.address initializes properly. Additionally, the address variable returned directly from the useAccount() hook updates regardless of how the connector is initialized, but account.address updates to a blank string when automatically connecting on page load.
Version:
"@starknet-react/core": "^3.6.2"
Using the Argent Chrome extension
Description:
There appears to be an issue on page load when updating the account address with the
useAccount()
hook. Specifically, the wallet correctly connects and the connected connector updates, but the wallet address cannot be read from theaccount
object returned from theuseAccount()
hook. If the wallet is not connected on page load and I manually callconnect()
from theuseConnect()
hook,account.address
initializes properly. Additionally, theaddress
variable returned directly from theuseAccount()
hook updates regardless of how the connector is initialized, butaccount.address
updates to a blank string when automatically connecting on page load.Snippet:
or
Console log in react strict mode (useEffects run twice):
Note that the wallet automatically connects to trigger the
account.address
value change fromundefined
to a blank string.The text was updated successfully, but these errors were encountered: