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

[system] Remove unnecessary parsed theme #35239

Merged
merged 3 commits into from Nov 24, 2022

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Nov 23, 2022

Since Joy UI and Material UI provide extendTheme fn which returns a new object, there is no need to clone the object anymore. Removing it to reduce the code complexity and remove unnecessary calculation.

@siriwatknp siriwatknp added the package: system Specific to @mui/system label Nov 23, 2022
@mui-bot
Copy link

mui-bot commented Nov 23, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35239--material-ui.netlify.app/

Details of bundle changes

Generated by 🚫 dangerJS against 690edc0

@siriwatknp siriwatknp marked this pull request as ready for review November 24, 2022 04:34
*
* !!! Don't provided the same keys as in colorSchemes to theme because they will be replaced internally when the selected colorScheme is calculated.
* - If the theme contains the same keys as the color scheme, their values will be merged.
Copy link
Member Author

Choose a reason for hiding this comment

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

@mnajdova updating the comment due to the change in #34650

Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

LGTM

@siriwatknp siriwatknp merged commit 4979502 into mui:master Nov 24, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants