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

[code-infra] Add 'use client' directive #16273

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jan 20, 2025

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.

@Janpot Janpot added the scope: code-infra Specific to the core-infra product label Jan 20, 2025
@mui-bot
Copy link

mui-bot commented Jan 20, 2025

Deploy preview: https://deploy-preview-16273--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against b24bba4

@Janpot Janpot marked this pull request as ready for review January 20, 2025 20:20
@Janpot Janpot requested a review from a team January 21, 2025 09:42
@JCQuintas
Copy link
Member

Copy link
Member

@LukasTy LukasTy left a 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?

@Janpot
Copy link
Member Author

Janpot commented Jan 21, 2025

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.

@Janpot Janpot merged commit b286684 into mui:master Jan 21, 2025
18 checks passed
@Janpot Janpot deleted the prepare-eslint-update branch January 21, 2025 17:03
A-s-h-o-k pushed a commit to A-s-h-o-k/mui-x that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants