Open eps1lon opened 2 years ago
React 18 was released!
I was also struggling with same issue, instead of npm, working with yarn
Please open an issue and follow the template if you're having problems.
are we going to get mui4 support on 18 as well?
are we going to get mui4 support on 18 as well?
@ncesar React 18 support for Material UI v4 is not planned and is very unlikely. Instead, if needed, we will invest time in making the migration from v4 to v5 smoother for developers.
Hey, I understand that as an OSS developer this might be a very annoying question, but do you have some general guidance or timeline on when we might see React 18 support complete?
Thanks!
timeline on when we might see React 18 support complete?
You mean regarding streaming support? That's currently the only thing that might be missing as far as I know. Though I would suggest opening a new issue with a minimal reproduction that illustrates current issues with streaming rendering.
@eps1lon Hey, thanks for answering!
I'm currently evaluating moving to React 18 and from reading this issue my understanding was that MUI 5 is not ready. I hadn't actually tested implementing it yet.
If MUI is considered ready for React 18, that's great!
v5 is compatible as far as we know. The only thing you need to figure out is using streaming rendering. That's unclear to me at the moment.
Could we update peerDependency in @mui/styles to React 18? Or is there still something that holds us back?
Could we update peerDependency in @mui/styles to React 18? Or is there still something that holds us back?
@mui/styles is not compatible with concurrent mode and react 18, this is why it isn't added in the peer dependencies. The other packages already have React 18 in their peer dependencies.
It is stated in its documentation - https://mui.com/system/styles/basics/
Seems like @mui/utils
has a dependency "@types/react-is": "^16.7.1 || ^17.0.0",
. Should this be updated to include || ^18.0.0
so it ends up using the correct @types/react@18.2.0
?
@jcoc611-gvt right, on the latest release v5.12.2:
It doesn't have 18 in its scope, it's a bit strange considering: https://www.npmjs.com/package/@types/react-is?activeTab=versions.
@types/react-is
18.x was kinda forgotten. It was just recently released 5 days ago without any changes.
Sorry, can we update "MUI Styles React 17 peer dependency (Support for React 18)" issue https://github.com/mui/material-ui/issues/35362? Thank you!
Tracking issue for work we should do once React 18 is released as stable
peerDependencies
https://github.com/mui/material-ui/pull/32063devDependencies
(keep special cases in test for React 17 so that we can run the test suite with both versions) https://github.com/mui/material-ui/pull/33196useMediaQuery
with React 18 installed (https://github.com/mui-org/material-ui/pull/28491)useId
and therefore variousid
attributes (https://github.com/mui-org/material-ui/pull/26489, https://github.com/mui-org/material-ui/pull/29782)