Skip to content

fix(react): "use client" for Next App Router - #10

Merged
tomymaritano merged 1 commit into
mainfrom
chore/react-use-client
Jun 15, 2026
Merged

fix(react): "use client" for Next App Router#10
tomymaritano merged 1 commit into
mainfrom
chore/react-use-client

Conversation

@tomymaritano

Copy link
Copy Markdown
Owner

cairn-react's provider + hooks are client-only but the bundle wasn't tagged "use client", so importing FlowProvider/useFlow in a Next App Router Server Component errored. Prepend the directive post-build (same approach as cairn-ui). Patch changeset → cairn-react@0.2.1.

🤖 Generated with Claude Code

FlowProvider/useFlow/useCurrentStep are client-only (context, effects,
useSyncExternalStore) but the bundle wasn't tagged, so importing them in a
Server Component errored. Prepend "use client" post-build (like cairn-ui).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cairn-docs-site Ready Ready Preview, Comment Jun 15, 2026 8:38pm

@sonarqubecloud

Copy link
Copy Markdown

@tomymaritano
tomymaritano merged commit d5e101d into main Jun 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant