Skip to content

Conversation

@devacc8
Copy link

@devacc8 devacc8 commented Jan 23, 2026

Summary

Adds a guide for handling wallet connection issues to help developers manage connection errors, disconnections, and reconnection scenarios.

Changes

  • Connection States: Documents the three states (disconnected, connecting, connected) that <ConnectWallet> handles automatically
  • Error Handling: Code example showing how to use wagmi's useConnect hook to catch and display connection errors
  • Troubleshooting Table: Common issues and solutions:
    • "User rejected request" → Show retry message
    • "Connector not found" → Prompt to install wallet
    • Connection stuck → Add timeout/retry
    • Wrong network → Use useSwitchChain
  • Disconnection Handling: Code example for monitoring wallet disconnections with useAccount
  • Manual Reconnection: Code example for reconnecting programmatically

Motivation

Fixes #2581

Developers using OnchainKit's wallet components need guidance on handling edge cases like failed connections, user rejections, and unexpected disconnections. This guide provides practical code examples and solutions for common scenarios.

- Add section explaining ConnectWallet connection states
- Add code example for handling connection errors with wagmi hooks
- Add troubleshooting table for common issues (user rejected, connector not found, stuck, wrong network)
- Add code example for monitoring disconnections
- Add code example for manual reconnection

Fixes coinbase#2581
@vercel
Copy link

vercel bot commented Jan 23, 2026

@devacc8 is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

@cb-heimdall
Copy link

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@cb-heimdall
Copy link

Review Error for JoeJMorrris @ 2026-01-24 01:43:09 UTC
User failed mfa authentication, either user does not exist or public email is not set on your github profile. \ see go/mfa-help

Copy link

@JoeJMorrris JoeJMorrris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to locate the issues and correct them

@devacc8
Copy link
Author

devacc8 commented Jan 28, 2026

I'm trying to locate the issues and correct them

hey, looks like you need to setup public email on your github profile.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Documentation Request: Provide a guide for handling wallet connection issues

3 participants