Skip to content

After disconnectAsync, isConnected is still true #4679

@hengshanMWC

Description

@hengshanMWC

Check existing issues

Describe the bug

After disconnectAsync, isConnected is still true, you need to refresh the page to disconnect

Link to Minimal Reproducible Example

No response

Steps To Reproduce

  • walletConnect connects to the wallet
  • const { disconnectAsync } = useDisconnect();, disconnectAsync disconnects
  • isConnected is still true
  • Need to refresh the page for isConnected to be false

What Wagmi package(s) are you using?

wagmi

Wagmi Package(s) Version(s)

2.15.2

Viem Version

2.29.2

TypeScript Version

5.8.3

Anything else?

nextjs: 14.2.7
react: 18.3.1

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