Skip to content

Commit

Permalink
Prvent both client and server side lazy loading setup
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Jul 22, 2024
1 parent 466a756 commit cb37273
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/x-data-grid-pro/src/internals/propValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ export const propValidatorsDataGridPro: PropValidator<DataGridProProcessedProps>
isNumber(props.rowCount) &&
'MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect. `rowCount` is only meant to be used with `paginationMode="server"`.') ||
undefined,
(props) =>
(props.signature !== GridSignature.DataGrid &&
props.rowsLoadingMode === 'server' &&
props.unstable_dataSource?.lazyLoaded === true &&
'MUI X: Usage of the client side lazy loading (`rowsLoadingMode="server"`) cannot be used together with server side lazy loading `unstable_dataSource="{ ..., lazyLoaded: true}"`.') ||
undefined,
];

0 comments on commit cb37273

Please sign in to comment.