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

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

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

sai6855
Copy link
Contributor

@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

@@ -52,7 +52,8 @@ function ThemeProvider(props) {
}

const theme = React.useMemo(() => {
const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
const output =
outerTheme === null ? { ...localTheme } : mergeOuterLocalTheme(outerTheme, localTheme);
Copy link
Contributor 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 added the package: material-ui Specific to @mui/material label Jun 11, 2024
@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
Contributor 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
19 of 20 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants