-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
Why was a breaking change introduced in a patch version? #17918
Comments
Emphasis on the documentation. The PR should not affect existing code with a breaking change. Could you include an example that is working different now? |
I suspect a duplicate of #17900. |
Thing is, builds were still working, so I don't think it's related to that issue. I'll try to create a minimal repo tomorrow. |
@JDansercoer Oh, then it's likely a duplicated @material-ui/styles module in your bundle. It's an issue that hit people since v4.0.0. The change you have linked to was precisely designed to prevent it from happening in the first place. I'm closing, until we have a reproduction. |
All right, here's my example @oliviertassinari. First the working example: https://codesandbox.io/embed/bold-yalow-jjg30 As you can see, the second button should be red, while in the broken example, MUI styles are taking precedence again. Only change I did, was upgrade Changing the import from |
You need to upgrade both at the same time. You would experience the same problem with any of our releases since v4.0.0. |
Could you post a Codesandbox does not resolve This is an unfortunate side-effect of how react handles context. If provider and consumer are imported from different modules (here: different files and versions) then the consumer will not read the value from the provider but the default value. |
For one of our repo's, this turned out to be a breaking change. Why was this introduced in a patch version? Not really following semver is super impactful..
The text was updated successfully, but these errors were encountered: