Skip to content

[material-ui][private-theming] Fix issues reported by react compiler in mui-private-theming components#42619

Merged
aarongarciah merged 1 commit intomui:nextfrom
sai6855:mui-theming-fix
Jun 11, 2024
Merged

[material-ui][private-theming] Fix issues reported by react compiler in mui-private-theming components#42619
aarongarciah merged 1 commit intomui:nextfrom
sai6855:mui-theming-fix

Conversation

@sai6855
Copy link
Member

@sai6855 sai6855 commented Jun 11, 2024

Part of #42564

@mui-bot
Copy link

mui-bot commented Jun 11, 2024

Netlify deploy preview

https://deploy-preview-42619--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 850a085

const theme = React.useMemo(() => {
const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
const output =
outerTheme === null ? { ...localTheme } : mergeOuterLocalTheme(outerTheme, localTheme);
Copy link
Member Author

Choose a reason for hiding this comment

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

this change fixed
Mutating component props or hook arguments is not allowed. Consider using a local variable insteadeslint(react-compiler/react-compiler) issue here

@sai6855 sai6855 changed the title [material-ui][private-theming] Fix react compiler issues in mui-private-theming components [material-ui][private-theming] Fix issues reported by react compiler issues in mui-private-theming components Jun 11, 2024
@sai6855 sai6855 changed the title [material-ui][private-theming] Fix issues reported by react compiler issues in mui-private-theming components [material-ui][private-theming] Fix issues reported by react compiler in mui-private-theming components Jun 11, 2024
@sai6855 sai6855 requested a review from aarongarciah June 11, 2024 12:02
Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

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

Nice!

@sai6855
Copy link
Member Author

sai6855 commented Jun 11, 2024

@aarongarciah feel free to merge PR, I can't merge

@aarongarciah aarongarciah merged commit c7caa1d into mui:next Jun 11, 2024
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Jun 12, 2024
siriwatknp added a commit to michaldudak/material-ui that referenced this pull request Jun 17, 2024
joserodolfofreitas pushed a commit to joserodolfofreitas/material-ui that referenced this pull request Jul 29, 2024
@zannager zannager added the internal Behind-the-scenes enhancement. Formerly called “core”. label Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Behind-the-scenes enhancement. Formerly called “core”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants