Comments (3)
Hey @bjackson42 ... this is indeed a slight regression on our side. The responsible commit is this: 7c4ba74
we can easily add this back in. Here is a diff for that change to start off:
diff --git a/packages/x-data-grid/src/hooks/features/pagination/useGridPaginationModel.ts b/packages/x-data-grid/src/hooks/features/pagination/useGridPaginationModel.ts
index c482999e4..57e7deece 100644
--- a/packages/x-data-grid/src/hooks/features/pagination/useGridPaginationModel.ts
+++ b/packages/x-data-grid/src/hooks/features/pagination/useGridPaginationModel.ts
@@ -115,17 +115,20 @@ export const useGridPaginationModel = (
}
logger.debug("Setting 'paginationModel' to", paginationModel);
- apiRef.current.setState((state) => ({
- ...state,
- pagination: {
- ...state.pagination,
- paginationModel: getDerivedPaginationModel(
- state.pagination,
- props.signature,
- paginationModel,
- ),
- },
- }));
+ apiRef.current.setState(
+ (state) => ({
+ ...state,
+ pagination: {
+ ...state.pagination,
+ paginationModel: getDerivedPaginationModel(
+ state.pagination,
+ props.signature,
+ paginationModel,
+ ),
+ },
+ }),
+ 'setPaginationModel',
+ );
},
[apiRef, logger, props.signature],
);
I will put this up for grabs for the community since it is a rather small change.
Feel free to take this up yourself!
Thanks again for raising this with us! 🙇🏼
from mui-x.
Thank you for the quick reply @michelengelen! I would love for the opportunity to contribute and will definitely make a PR for this. Thank you again for the fast support and details on the issue. I really appreciate the code block showing the diffs, that is awesome.
Have a wonderful and fantastic day!
from mui-x.
PR created -> #12923
from mui-x.
Related Issues (20)
- [Datagrid] Poor mount performance on Safari HOT 3
- [data grid] Row does not get selected when clicking on action cell HOT 2
- [docs] Initialize the quick filter values -> ['quick', 'filter'] should be ['ab'] HOT 1
- [data grid] Change clipboard copy behaviour/precedence? HOT 2
- [data grid] Why is GridValueFormatter defaulting the value to never? HOT 5
- [docs] Improve slots and layout customization examples HOT 1
- [charts] Fix TS performances HOT 3
- [data grid] Excel Export Is not Disabled Per Configuration HOT 4
- [data grid] The bottom pinned row in a data grid does not stay at the bottom when there aren't any other rows in the data set HOT 5
- [charts][PieChart] `prop.slots` and `prop.slotProps` not passed to `<ChartsTooltip />` HOT 2
- [data grid] GridColDef valueGetter method's value parameter is always never HOT 4
- [data grid] pagination add jump input HOT 1
- [data grid] How to Avoid column readjustment HOT 11
- [code-infra] "pnpm test" works poorly HOT 4
- [data grid] pageSize is reset to zero with enabled autoPageSize and there is enough room on the page for a larger page size HOT 5
- How can I write a controlled filter for a boolean field? HOT 1
- [question] valueFormatter does not work in DataGridPremium, but it works in DataGrid. HOT 2
- [data grid] Column autosizing calculated on old data instead of new data
- [data grid] My print export is failing with 'MIME type ('text/html') is not a supported stylesheet MIME type' and 'rows must have unique ids' on export customization HOT 4
- [DataGrid] cell content not consistently center aligned HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.