-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] Add recipe for sorting row groups by the number of child rows #11164
[docs] Add recipe for sorting row groups by the number of child rows #11164
Conversation
Deploy preview: https://deploy-preview-11164--material-ui-x.netlify.app/ Updated pages: |
c1b230a
to
9375a6f
Compare
|
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.
Nice one, I couldn't grab it right now but I remember discussing this use case on some GH issue too 👍
], | ||
}, | ||
}} | ||
groupingColDef={{ |
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.
Should we stabilize the reference to this prop?
getGroupingColDefs
might recompute on each render which may yield some rendering side effects.- In docs, we suggest to keep stable references for all non-primitive props, so it'd be better to follow the same in our demos.
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.
Done 👍🏻
Use case: https://discord.com/channels/1131323012554174485/1131329358062178324/1169324963740794960
Preview: https://deploy-preview-11164--material-ui-x.netlify.app/x/react-data-grid/recipes-row-grouping/#sorting-row-groups-by-the-number-of-child-rows