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

fix: improve support for OnchainKit in Next.js 14+ apps #1771

Merged
merged 7 commits into from
Jan 9, 2025

Conversation

dschlabach
Copy link
Contributor

@dschlabach dschlabach commented Dec 19, 2024

What changed? Why?
Next.js uses server components by default. When users attempt to bring OnchainKit components in a server component, they get an obscure error because the client boundary is not set properly at our component level.

Notes to reviewers
I've started with just the Identity component, we can add support for other components in future PRs

How has it been tested?

  • Built and packed package locally using yarn build && yarn pack
  • Create and test in various environments: Next.js 14 app (in server component), Vite app, Node script.

Copy link

vercel bot commented Dec 19, 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 Jan 9, 2025 5:21pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 5:21pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 5:21pm

@dschlabach dschlabach changed the title fix: improve support for OnchainKit in Next.js 14+ apps 🚧 fix: improve support for OnchainKit in Next.js 14+ apps Dec 19, 2024
Copy link
Contributor

@abcrane123 abcrane123 left a comment

Choose a reason for hiding this comment

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

nice

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

Successfully merging this pull request may close these issues.

3 participants