-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Too much repetition in components (muiTheme in state & context) #1941
Labels
Comments
Almost same as #458 |
mnajdova
pushed a commit
to mnajdova/material-ui
that referenced
this issue
Nov 10, 2020
Bumps [rollup](https://github.com/rollup/rollup) from 2.10.2 to 2.18.1. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v2.10.2...v2.18.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zannager
added
core
Infrastructure work going on behind the scenes
customization: css
Design CSS customizability
labels
Dec 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
So apparently we have too much repeated code in the components.
contextTypes
,getChildContext
,getInitialState
andcomponentWillReceiveProps
to name a few.We could merge them in a Mixin but seemingly React is moving away from mixins. The alternative solution is to use a high-order component. Or maybe require context to always be exposed by a root component like it was before? (This would also solve #1926)
Thoughts?
The text was updated successfully, but these errors were encountered: