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

[core] Remove references to other objects from created theme #22523

Merged
merged 3 commits into from Sep 9, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Sep 7, 2020

Resolves #22494 (comment)

@eps1lon eps1lon added bug 🐛 Something doesn't work package: material-ui Specific to @mui/material labels Sep 7, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Sep 7, 2020

Details of bundle changes

Generated by 🚫 dangerJS against 9896b39

@oliviertassinari
Copy link
Member

@eps1lon Do we want to add a regression test for it? But considering it wasn't raised by any users, maybe we shouldn't bother? If we don't plan to add tests, is it good to be merged?

@eps1lon
Copy link
Member Author

eps1lon commented Sep 9, 2020

Forgot to merge. I thought about freezing the exported objects for safety but there just so much added code that it didn't seem worth it.

Ideally we'd deeply freeze everything that goes in and make sure the output is not frozen. We can revisit if we encounter it again.

@eps1lon eps1lon merged commit 27fe6a3 into mui:next Sep 9, 2020
@eps1lon eps1lon deleted the fix/createMuiTheme-side-effects branch September 9, 2020 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants