diff --git a/src/react-next-paging.js b/src/react-next-paging.js index ebeb000..9fd2db9 100644 --- a/src/react-next-paging.js +++ b/src/react-next-paging.js @@ -84,7 +84,7 @@ class ReactNextPaging extends React.Component { ) { const { currentpage } = prevState; const newState = this.generateStateFromProps(this.props, currentpage); - this.setState({ ...newState }); + this.setState({ newState }); } }