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

Add "use client" to all potentially interactive components to enable support for Server Components #222

Merged
merged 31 commits into from
Feb 19, 2025

Conversation

aurorascharff
Copy link
Contributor

@aurorascharff aurorascharff commented Feb 14, 2025

Describe your changes

Add "use client" to all potentially interactive components to enable support for Server Components. Without this, the project using i.e Next.js needs to make wrapper components for all the interactive components coming from md-components.
After adding ariakit in feature/radix-ui (pending PR), errors would be thrown regardless due to context not working on the server.

Checklist before requesting a review

  • I have performed a self-review and test of my code
  • I have added label to the PR (major, minor or patch)
  • If new component: Is story for component created in stories-folder?
  • If new component: Is tsx-file import added to packages/react/index.tsx?
  • If new component: Is css-file added to packages/css/index.css?

Copy link
Contributor

Please set a versioning label of either major, minor, or patch to the pull request.

@aurorascharff aurorascharff marked this pull request as ready for review February 18, 2025 20:31
@aurorascharff aurorascharff requested a review from a team as a code owner February 18, 2025 20:31
Copy link
Contributor

@ohp-inmeta ohp-inmeta left a comment

Choose a reason for hiding this comment

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

👍

@aurorascharff aurorascharff merged commit 2a2d7e5 into main Feb 19, 2025
3 checks passed
@aurorascharff aurorascharff deleted the add-use-client-react19 branch February 19, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants