Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add onConnect handler to <ConnectWallet /> #1529

Merged
merged 50 commits into from
Nov 1, 2024
Merged

Conversation

dschlabach
Copy link
Contributor

@dschlabach dschlabach commented Oct 28, 2024

What changed? Why?
We're adding an onConnect handler to <ConnectWallet /> so that developers can perform arbitrary actions after users click the "Connect Wallet" button. For example, this can be used to support SIWE without requiring a second button click/popup.

While this can be done with wagmi today, this improves DX for devs who wan to perform an action only after a user clicks the ConnectWallet button (vs. re-connecting on page reload/re-render).

Notes to reviewers

How has it been tested?

  • Added tests
  • Manual testing across browsers, including smart wallets, EOAs, and RainbowKit

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 1:57pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 1:57pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 1:57pm

@0xAlec 0xAlec merged commit d4724e9 into main Nov 1, 2024
16 checks passed
@0xAlec 0xAlec deleted the dms/wallet-proto-1 branch November 1, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants