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
[DataGrid] Pass reason to onPaginationModelChange
#12923
base: master
Are you sure you want to change the base?
Conversation
Deploy preview: https://deploy-preview-12923--material-ui-x.netlify.app/ |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
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.
Thank you!
packages/x-data-grid-premium/src/hooks/features/aggregation/gridAggregationInterfaces.ts
Outdated
Show resolved
Hide resolved
), | ||
}, | ||
}), | ||
'setPaginationModel', |
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.
Could you also pass the "stateRestorePreProcessing" reason in the stateRestorePreProcessing
function?
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.
I'll take a look at this as soon as possible, thank you
onPaginationModelChange
file: [packages\x-data-grid\src\hooks\features\pagination\useGridPaginationModel.ts] (+) updated setPaginationModel api.current.setState to set the reason, 'setPaginationModel'. this was removed in commit 7c4ba74.
6373509
to
12ce10c
Compare
Fixes #12897