broad-salmonB
Refine16mo ago
5 replies
broad-salmon

useDataGrid MUI Pagination - pageSize not working in a MUI Dialog

I have a parent component which uses useDataGrid and the pagination is like this: {
current: 1,
pageSize: 10
}

and this component calls a dialog which also uses useDataGrid but this different pageSize: 5.

The problem is that the dialog is inferring the pageSize from the parent component. So the pageSize is also 10 on the dialog's request.
Was this page helpful?