-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[code-infra] Add 'use client' directive #16273
Conversation
Deploy preview: https://deploy-preview-16273--material-ui-x.netlify.app/ |
Does this mean this script will not be needed anymore? https://github.com/mui/mui-x/blob/add0c954ee19a2b768cc9a19ffac56c11d7fd278/packages/rsc-builder/buildRsc.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should update the script JC has linked to include these cases, if they are really necessary. 🤔
WDYT? Does it make sense?
The script should become obsolete as the eslint rule includes an autofix. Its detection logic on when to add the directive may be built on different principles though. I'm removing rsc-builder altogether. |
Prepare the eslint update that mandates this directive in entrypoint files that use react client APIs. You can also just run
eslint --fix
next time you update the monorepo.