Skip to content

[bug] Wallet is connected with the dapp but the useAppKitAccount().isConnected get false #5429

@Rizwankmc

Description

@Rizwankmc

Link to minimal reproducible example

visit the https://beta.weje.com

Steps to Reproduce

go to beta.weje.com
connect your metamask wallet with the app by clicking on the connect button and it will redirect user to profile page
wait there few minutes (sometime more) the user will see the popup says wallet is disconnected to reconnect and we are showing the reconnect popup when the isConnected value change to false

Summary

I'm facing issue with the isConnected value from the useAppKitAccount() hook is changed while the wallet is still connected. don't know what does change in the new update or the current update broke this earlier it was good and stable seems like the connection state is not managed properly.

User redirected to profile page and page is idle for few minutes, then the isConnected value changed without doing anything and it triggers the popup of reconnect to show and connect again

I have tested with 2 versions of the @reown/appkit-
"@reown/appkit": "1.7.15",
"@reown/appkit-adapter-ethers5": "1.7.15",
"@reown/appkit-wallet-button": "1.7.15",
"ethers": "5.7.2",

and -
"@reown/appkit": "^1.8.15",
"@reown/appkit-adapter-ethers5": "^1.8.15",
"@reown/appkit-wallet-button": "^1.8.15",
"ethers": "5.7.2",

Image Image

const { isConnected, address } = useAppKitAccount();

{" "} {translate("ensuring-wallet-connected")}

List of related npm package versions

"@reown/appkit": "1.7.15",
"@reown/appkit-adapter-ethers5": "1.7.15",
"@reown/appkit-wallet-button": "1.7.15",
"ethers": "5.7.2",

"@reown/appkit": "^1.8.15",
"@reown/appkit-adapter-ethers5": "^1.8.15",
"@reown/appkit-wallet-button": "^1.8.15",
"ethers": "5.7.2",

Node.js Version

v20.18.0

Package Manager

npm@10.8.2 yarn@1.22.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions