-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Support @mui/utils
v6
#14867
[core] Support @mui/utils
v6
#14867
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I would like to wait for one more review on this, since I am not aware of all implications this might have.
Deploy preview: https://deploy-preview-14867--material-ui-x.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've forked the mentioned CodeSandbox and installed a build from this branch.
Class name generation works as expected. 👍
Thank you for taking care of it! 🙏
@@ -42,7 +42,7 @@ | |||
}, | |||
"dependencies": { | |||
"@babel/runtime": "^7.25.7", | |||
"@mui/utils": "^5.16.6" | |||
"@mui/utils": "^5.16.6 || ^6.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to expand @mui/utils
version flexibility on some additional libraries to avoid duplicate downloads (i.e. @mui/x-internals
package is used by many other packages).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice spot!
closes #14866
Root cause
From https://codesandbox.io/p/sandbox/elegant-tree-xspyf2?file=%2Finitialize.ts%3A5%2C1,
It's the inconsistency of
@mui/utils
version.@mui/material
=>@mui/utils
v6@mui-x/data-grid
=>@mui/utils
v5That's why configuring the classNameGenerator from
@mui/material
(using@mui/utils
v6) does not affect DataGrid which is using@mui/utils
v5.