Skip to content

Commit

Permalink
fix: pagesize not ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Jul 9, 2022
1 parent 13f1b7c commit eda9e43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/material-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ export default class MaterialTable extends React.Component {
propsChanged = propsChanged || !equal(prevProps.data, this.props.data);
}

if (prevProps.options.pageSize !== this.props.options.pageSize) {
this.dataManager.changePageSize(this.props.options.pageSize);
}
console.log(this.props.options.pageSize);
if (propsChanged) {
const props = this.getProps(this.props);
this.setDataManagerFields(props, false, prevProps.columns);
Expand Down
2 changes: 1 addition & 1 deletion src/store/LocalizationStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function useMergeProps(props) {
mergeComponents(props.components);
}
}, [props.components]);
console.log(localization, props.localization);

return {
localization,
options,
Expand Down

0 comments on commit eda9e43

Please sign in to comment.