-
-
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
[docs][Table] Refactor Sorting & Selecting
table demo
#33236
Conversation
The demo is making React render function too computationally expensive.
Netlify deploy previewhttps://deploy-preview-33236--material-ui.netlify.app/ Bundle size report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the number of rows per page (Rows per page) isn't working.
Preview: https://deploy-preview-33236--material-ui.netlify.app/material-ui/react-table/#sorting-amp-selecting
Sorting and Selecting
table demo
Sorting and Selecting
table demoSorting and Selecting
table demo
5446b46
to
fe0d990
Compare
@ZeeshanTamboli Apologies for the many unsuccessful commits that may have bothered you with notifications. Now, the preview link you gave me works! Thank you. |
Signed-off-by: RAMANOHISOA Tahina Faniry Willy <faniry.consulting@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IFaniry I found one more thing while testing:
When you go to the last page, which has some empty rows, and then you change the number of rows per page, it still shows the empty rows and does not occupy them. While it does not happen in the latest deployed version: https://mui.com/material-ui/react-table/#sorting-amp-selecting.
Also please update with the latest master branch to include #36546.
Co-authored-by: Zeeshan Tamboli <zeeshan.tamboli@gmail.com> Signed-off-by: RAMANOHISOA Tahina Faniry Willy <faniry.consulting@gmail.com>
When you change the number of rows per page then you automatically go to the first page and afterwards the last page still works as expected. So, when you test the deploy link now, it works as expected, right? |
@IFaniry What I meant was this: In https://deploy-preview-33236--material-ui.netlify.app/material-ui/react-table/#sorting-amp-selecting, see the empty space on last page after changing rows per page: issue.sorting.and.pagination.demo.movWhile the working version in https://mui.com/material-ui/react-table/#sorting-amp-selecting (no empty space): Working.version.mov |
Good catch @ZeeshanTamboli ! I made a commit to fix my bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more thing I found is that when you change the rows per page or go to the next page, the rows get disorganized. It should be kept sorted in ascending order.
4d67993
to
bcbe8ee
Compare
Sorting and Selecting
table demoSorting & Selecting
table demo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IFaniry It looks good and it's a great first pull request on MUI 👌 Thank you for working on it!
yeahhh 🤩 Thank you for supporting me on this PR, @ZeeshanTamboli. You are a great maintainer 👊 |
Reverted in #36898 |
When you toggle the "Dense padding" switch, the heavy client-side sorting and pagination logics are unnecessarily triggered.