-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[types] Fix variant props callback type to spread ownerState
#46187
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
Conversation
Netlify deploy previewhttps://deploy-preview-46187--material-ui.netlify.app/ Bundle size report |
I've tried using the packages from this PR, and here are a couple of issues that are still present:
Is there a reason for |
Good catch. It should not be a A test added to ensure it works for the |
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 tested the changes on mui/mui-x#17802.
Thanks for the improvements! 💙 💯
They helped us uncover some suboptimal ownerState type definitions as well as one actual bug! 🎉 🙏
Looks like there might be RTL issues in the new release. |
Co-authored-by: Diego Andai <[email protected]> Signed-off-by: Siriwat K <[email protected]>
Root cause
The pattern below is logically correct based on the implementation but failed on type check.
This PR fixes the issue above. A test (using MUI X pickers code) is added to ensure that it fixes the issue.