-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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]: remove 'use client' from navigation-menu.tsx #6888
Comments
looks like it's been removed, maybe you are still using an older version? |
I just ran |
I'll test this today |
noticed it seems the v4 navigation menu still has 'use client' I can open a PR to remove |
Can we do the same for the following? From a simple grep, these components don't use any hooks but have
|
@benwaffle check out the PR, I found in testing each in a server only demo there were a couple that still require the 'use client' directive like Calendar |
nice! |
… components Removes redundant 'use client' directives from various UI component files to optimize client-side performance. Fixes shadcn-ui#6888
Added v3 changes too |
Feature description
As far as I can tell, "use client" isn't necessary here, right? It seems to work fine.
Radix says all components are SSR-able.
Affected component/components
NavigationMenu
Additional Context
No response
Before submitting
The text was updated successfully, but these errors were encountered: