Skip to content

Wallet reconnect error #281

Description

@luchobonatti

Description

ConnectKit fails when trying to reconnect a wallet after disconnecting from the dApp.

Steps to reproduce

  1. Connect your wallet from the dApp
  2. Disconnect your wallet from the dApp
  3. Try to connect again
  4. See error

Expected vs actual behavior

Expected: Wallet should reconnect successfully.
Actual: ConnectKit throws an error and the connection fails.

Additional context

Screenshot:
image

Possible fix: https://github.com/BootNodeDev/xerc20-launchpad-frontend/blob/main/src/hooks/useWeb3Status.tsx#L62

Reload react-router on disconnect:

useAccountEffect({
  onDisconnect() {
    navigate({})
  },
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingseverity: mediumBroken feature, workaround existsv3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions