-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Upgrade Material UI to Latest Stable #2399
Comments
Material-ui 3 is a BC break over material-ui 1, so upgrading that dependency would be a BC break for react-admin, too.We'd have to release react-admin 3.0. Since the latest stable (2.0) is not that old (May 2018), we'll wait a few more weeks before breaking BC again. |
Material-UI v3 introduces the following breaking change over Material-UI v1:
What browser versions is supported by react-admin? Maybe there is no breaking change if Firefox 41 wasn't supported. |
We haven't listed the browser versions we support. So in react-admin terms, dropping support for FF < 52 isn't a BC break per se ;) However, that would still require a 3.0, and major versions frighten users because of the upgrade cost. I'd rather continue using an old material-ui version for another couple of months rather than rushing a major just to get the new features. @oliviertassinari this is where our release strategies diverge. |
@fzaninotto Hi! Coming back to this issue since recent (post I totally understand the need to not jump majors too frequently and I appreciate the consideration you have regarding developer experience. However, would you have an estimation of a timeline for the release of major version updating MaterialUI ? Depending on that timeline, I can either try and help you release and/or monkey-patch MaterialUI on my end. Should you need more info about the bug I can try and create a reproduction repo, but I’m not sure that it is valuable since the fix was already shipped in either mui/material-ui#13351 or mui/material-ui#13389. |
The guys at material-ui are hard at work planning the next BC break with the hooks rewrite, so we'll definitely wait for that effort to finish before releasing a major on our side. |
Oh yes that makes sense, thanks for the update! |
If you are using PS: don't upgrade the icons package though, some icons we use in |
@fzaninotto Yes, depending on how React moves forward with the hook API, we might hold on Material-UI v4 release to rewrite the internals of Material-UI to use the hooks. Hopefully, it won't have any userland implications, just better performance and a better debug experience. |
We're looking forward to using the |
@fzaninotto We might move forward with a design system component too: mui/material-ui#13632. |
nice! |
@phacks regarding the |
The import ``` import TablePaginationActions from '@material-ui/core/TablePaginationActions'; ``` does not work anymore in material-ui’s more recent versions, as per mui/material-ui#13524. This commit makes transitioning from `material-ui@1.4.1` to `3.5.1` easier.
The import ``` import TablePaginationActions from '@material-ui/core/TablePaginationActions'; ``` does not work anymore in material-ui’s more recent versions, as per mui/material-ui#13524. This commit makes transitioning from `material-ui@1.4.1` to `3.5.1` easier.
The import ``` import TablePaginationActions from '@material-ui/core/TablePaginationActions'; ``` does not work anymore in material-ui’s more recent versions, as per mui/material-ui#13524. This commit makes transitioning from `material-ui@1.4.1` to `3.5.1` easier.
…ion-proptypes [#2399] chore: hardcode TablePaginationAction proptypes
Is there any opened tracking issue for this? (that will be blocked on material ui) |
@Bnaya not sure what you mean by that. |
|
@maicWorkGithub see #1999 |
Why is this closed? Are you not planning to upgrade at all? |
No, we're not planning to update to the existing material-ui (v3), only to the next one (v4), and it's not out yet. Please read the entire conversation for details. |
There is a solution for those who want to use react-admin with material-ui 3.x. The compatibility problem is with material-ui >= 3.6, because material-ui use react-redux 6.x as dependency, and react-admin isn't compatible with react-redux 6.0. material-ui works well with react-redux 5.x, so the solution is to force some libraries releases used by material-ui to be compatible with react-admin. Yarn tools as the Here an extract of my
Jacques |
Which MUI styling solution is react-admin planning to use in the next version (that uses MUIv4.0)? (makeStyles) Hook API, (styled) API from @material-ui/styles? |
@jinman Material-UI is using a single styling solution. hook, hoc, styled are different APIs powered by the same logic. In the core of Material-UI, we gonna try to move from withStyles to makeStyles. I still haven't lost sight of using something more popular, mui/material-ui#6115 |
@oliviertassinari do you have any recommendations on which ones we should leverage so we can easily upgrade to react-admin latest version when MUIv4 is integrated? We were thinking about using styled because of the popularity but right now its very difficult to integrate. |
const CustomTableCell = withStyles(theme => ({
head: {
backgroundColor: theme.palette.common.black,
color: theme.palette.common.white,
},
body: {
fontSize: 14,
},
}))(TableCell);
I'm personally using makeStyles, but styled isn't a bad idea. We might revisit the approach in v5. I this is from an internal dicussion. We have so many components that no matter what we do, it will most likely involve a codemod:
We have a few challenges to solve: more components, smaller bundle, better performance, better customization. It will be our focus between v4 and v5. |
Tried this option with resolutions, but getting error(s) such as
Is there any alternative approach to use the react-admin with the latest material-ui??? |
see #3102 |
Sorry to comment on a closed issue but it seems that #3102 has been reverted so we are still locked on 1.5.1. I've done The only thing is some very big warnings in the console (they seem to be displayed as console.error). Is that the problem ? |
We won't work on upgrading material-ui in the react-admin 2.x branch anymore. We've gone that path, and iy's impossible to have a core compatible with both mui 1.x and mui 3.x. React-admin 3.x will use the latest material-ui (4.x). |
Do you have any plans on react-admin 3 timing? Mui 4 is already in beta... |
I'm pretty new to material ui, but it looks like latest stable is at 3.2, but react-admin is still on ^1.4. When implementing customizations to the react-admin, it caused me to lose some time because I was trying to figure out why certain Material UI code wasn't working and then I found out react-admin just uses an older version.
Is there anything stopping this project from being able to bump up to material ui 3.2 other than just the work to port it over?
Thanks again for all the hard work into this library!
The text was updated successfully, but these errors were encountered: