-
-
Notifications
You must be signed in to change notification settings - Fork 32.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] Host normalize-scroll-left #19638
[core] Host normalize-scroll-left #19638
Conversation
Details of bundle changes.Comparing: f567b38...6a43efe
|
ESM support was accepted pretty fast |
@TrySound It's definitely maintained, I have no concern on this side. |
What's the purpose of this PR? every dependency inlined increases app bundle size. |
I think that in an ideal world, Material-UI would have zero dependencies because:
Over the last few months, we have been going further in this direction, removed a bunch of dependencies (keycode, react-event-listener, react-select, warning, downshift) and we plan to go further down this direction with style adapters. Now, in practice, having dependencies can also help us (I have tried to list all the deps I'm aware we have):
|
@oliviertassinari react-transition-group should definitely be replaced. Some of the animations feel choppy. Maybe react-spring or similar? Especially on mobile with lower CPU you can feel the difference. |
Feels arguments don't matter. It's indicative of bad education. It's our responsibility to document why we choose certain dependencies.
I'm not following the freedom argument. The implementation of what dependency would you like to change to fix which bugs/enable what features?
We're not that fast. It's hubris to actually believe dependencies hold us back.
These were not dependencies.
Was removed with an actual rationale beyond "fewer dependencies"
Also had a rationale. react-event-listener in particular was obsolete due to better ergonomics with hooks.
I'm not sure how else to say that because I'm saying it again and again but you keep shifting the blame: That is entirely my fault that it is holding us back at the moment not theirs.
And we have IE11 issues in our code. Whether this is caused by a dependency or not is not the cause of IE 11 issues. So again: What are you achieving by this other than "feeling better"? Objectively this will increase the bundle size for some apps. |
I disagree. Feeling is the single most important level we are working on. You might enjoy this podcast on a related topic, it's so joyful https://fs.blog/rory-sutherland/ :D. What's your fear?
I think that we can ignore this concern for this dependency, it's negligeable.
By using them in our demos, we give them some credit. I think that it starts to blur the line. Our users expect a minimum quality from them.
I think that our mission is probably a more important factor than speed in the "hold back" argument. What problems do we want to own and solve?
And mine for not using react-jss over a custom @material-ui/styles version that has strict mode issues, no big deal :) |
I'm not listening to a two hour long podcast that is suggested to me laughing at me. If you can't explain the arguments of a two hour long conversations then the ownness is on you. |
@eps1lon the episode is great on its own, outside the discussion we have here, it has changed some of my perspectives when I first listen it :). |
I have adapted the source to remove the server-side and setter support. The project has almost no feedback from the community (but is maintained), I think that it's a good signal that can consolidate the logic on Material-UI :).
@alitaheri Thank you for working on such a project!