admin管理员组

文章数量:1399899

When I switch accounts directly through Petra wallet extension, the useWallet() hook does not update the account state. It does not happen when I switch between accounts already connected to the wallet in the past, it's ok. However, when I switch to the new account, hook useWallet() in @aptos-labs/wallet-adapter-react does not update new account data.

I guess I am using an old version. Please help me figure out this problem. Below is my library's version I use in my app

@aptos-labs/wallet-adapter-react: ^3.4.2
petra-plugin-wallet-adapter: ^0.4.5
react: 18.2.0
next: 14.3.0-canary.0

本文标签: