-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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][Avatar] Simplify valid children assertion #40834
[material-ui][Avatar] Simplify valid children assertion #40834
Conversation
Netlify deploy previewhttps://deploy-preview-40834--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
d062394
to
5ab8085
Compare
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.
@oliviertassinari IMO, sacrificing readability for such a marginal reduction in bundle size isn't justified. Even with a comment, this code takes time to understand. Instead, we can spend time optimizing bundle size in other areas while maintaining code clarity.
@ZeeshanTamboli I don't see the balance this way. I don't see this is more complex, it seems simpler to me (truthy values + 0, maybe because I was already exposed to it in #34853. The primary target is to have a great experience for end-users and developers, the experience maintainers have is secondary but should be aligned to support the former. |
A simplification on #40766 to save bundle size.
https://mui-dashboard.netlify.app/size-comparison?circleCIBuildNumber=643588&baseRef=master&baseCommit=4f793a13d5105373a3eb3765a60bfd17d1d8960c&prNumber=40834