-
Notifications
You must be signed in to change notification settings - Fork 932
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 to Material-UI 5 #1772
Upgrade to Material-UI 5 #1772
Conversation
For prettier > 2.0 See: prettier/prettier-vscode#1299
How are you progressing with this PR? Thanks for handling that 👍! |
This PR is actually ready for review and merge. Please let me know what the next step is. Feedbacks welcome. Thanks. |
I hope this will get merged soon as I want to move my project to v5. |
Also eagerly awaiting this 😁 |
@zxhmike I build your pr myself and put in my project but when I go to the route with mui datatables it removes almost all of my styles from my app. |
@luluhoc Thanks for the update. Do you see any errors/warnings in the console? We compiled our own project using this branch and it is fine so far. |
+1 |
It was my fault, but now I can't do table pagination I'm getting, or change rows per page. Even in the examples page it is not working for me.
|
Hi @luluhoc , Thanks for this PR. I saw that you changed something in the TablePagination.js file. However, if you look at our PR to mui-datatables (#1772), we did not make any change in those two lines (see the screenshot below), so this does not seem to be a bug we introduced while upgrading to mui 5. If you feel like it is a different bug, could you please create a new PR to mui-datatables instead? Thank you. |
Naming of this two props was changed in this commit mui/material-ui@ab33be8#diff-a88e6d0575e76796d2fdea671ed8b3620762fbd4e4cdcfc01677fc4f3be6fadb |
Co-authored-by: luluhoc <lucjan.grzesik@gmail.com>
Hi @luluhoc , I see. MUI changed its API when upgrading to version 5. I have already merged into this branch. Thanks again for the contribution. Besides these two changes, are you aware of any other API changes of MUI that we should aware of when upgrading mui-datatables to support MUI v5? Or if you know such a changelist exist, please point us to. We would like to do a scan of mui-datatables code base to see if anything else if affected. Thanks. Mike |
Thank you for wonderful work |
Is there any ETA for getting this merged? Working on MUI5 updates now and this is the only blocker. |
Yes, I have one more problem I will try to do a PR later. Overall, I've been running this PR in production, and I haven't encountered any problems whatsoever. this is the error I'm getting
|
+1 |
@gregnb help us her. please |
This PR required and important. We can't use it like this. |
Fixed most of the visible issues with this pisrcio#2. If anyone connects it to their project and finds any other issues, would be happy to help! |
Hey @shaun-scale, I tried to reproduce the error but was not unable to do that. Would be able to share a code sandbox ? |
@gregnb please merge |
Hey @gregnb, It would be great, if you merge the PR! 😀 |
Let's chalk it up to user error then - but glad we found some other issues to address :) |
It may be helpful to google "LinkedIn Gregnb" - maybe his Github email isn't used by him anymore :) |
Issue: #1791 is currently breaking the production release of the library please push an update. 🙆♂️ pretty sure 50% of all issues will disappear after this merge. Waiting....lol Grant a trusted contributor write access to merge, please 😫 |
@luluhoc |
If this is added to |
@HeavenlyEntity while technically correct, the underlying issue would also be fixed once #1748 is merged, renaming the now-non-existent buttonRef prop to ref on the IconButton component. FYI regarding the comments about finding gregnb on linkedin - it looks like @gabrielliwerant took over as maintainer somewhere around Jan 2019, then @patorjk became the maintainer on May 30, 2020 and subsequently handed maintainer responsibility to @wdh2100 on Mar 10, 2021. |
Yeah makes sense just needs to be updated. @wdh2100 , @gabrielliwerant , or @patorjk could you merge this PR as it is ready? The next PR to merge is the #1748 after this one to remove props/PropTypes. All new installs are breaking from the new mui update. Please and thank you 👍 😁 |
Really itching for this one 🤞 |
Any reason this PR is getting ignored by the mantainers? |
Would be really nice to have this. |
Release 4.0.0 |
Thanks for merging this @wdh2100, you're the GOAT! |
@wdh2100 After updating to 4.0.0 it breaks for me when using SSR, could this be due to the release? If so, I'll create a issue for it. |
who knows when will be updated @types/mui-datatables? |
Thanks for this upgrade! |
I'm also having trouble with SSR using this version #1806 |
@zxhmike Will MUI-Datatable be compatable with MUI 5.2.3 v? because we are using mui 5.2.3 v on our project and planning use the MUI-Datatable. So throw some light on this. Also I have shared my code sandbox link: https://codesandbox.io/s/mui-datatable-example-forked-7lu7ue?file=/src/App.js for reference. Thanks. |
Make mui-datatables to be compatible with Material-UI 5. The target version is 5.0.1. The version of the mui-datatables itself is not bumped yet.
Followed migration instructions on this page: https://next.material-ui.com/guides/migration-v4/
Also used the codemod here: https://github.com/mui-org/material-ui/blob/next/packages/material-ui-codemod/README.md#mui-replace
Changes:
createTheme
andThemeProvider
instead ofcreateMuiTheme
,MuiThemeProvider
.ThemeProvider
instead ofMuiThemeProvider
.withStyles
,makeStyles
from@mui/styles
instead of@material-ui/core/styles
.ThemeProvider
to the root of the examples page.material-ui/core, icons
versions to5.0.0-rc.0
. Add@material-ui/styles
version5.0.0-rc.0
.@wojtekmaj/enzyme-adapter-react-17
instead ofenzyme-adapter-react-16
. Caution: This is an unofficial package. Cannot find an official enzyme adapter for react 17.next
version to 11.1.2.react
andreact-dom
versions to 17.0.2.react-waypoint
version to 10.1.0.rollup
version to 2.3.4. Sincerollup-plugin-uglify
is not compatible with rollup version 2, use@lopatnov/rollup-plugin-uglify
instead. Caution: This is an unofficial package. Cannot find an official rollup uglify plugin in version 2. Also addrollup-pluginutils
as the dependency of the new rollup uglify plugin.@emotion/react
and@emotion/styled
as required by Material-UI 5.react-sortable-tree-patch-react-17
instead ofreact-sortable-tree
. Caution: This is an unofficial package.Known Issues:Able to bring up https://localhost:5050 after running
npm run dev
and run most examples except the following examples:Column Filters: Showing "Sorry, no matching records found".Upon further review, this seems expected. Remove a filter to show data. Please confirm.Column Option Update: Showing "Sorry, no matching records found".Upon further review, this seems expected. Remove a filter to show data. Please confirm.Component: Does not render.Fixed by adding empty labels to FormControlLabel components. Reference: https://next.material-ui.com/guides/migration-v4/#formcontrollabelWe are looking into the above issues.Please let us know what else need to be tested. Thank you.