Skip to content

Commit

Permalink
fix(duplicated compdidmount functions): duplicated compdidmount funct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
titanve committed Mar 3, 2019
1 parent 1708669 commit 6e5b585
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/react-next-paging.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ class ReactNextPaging extends React.Component {
items: []
};

// UNSAFE_componentWillReceiveProps(nextProps) {
// this.setState(prevState => {
// let { currentpage } = prevState;
// return this.generateStateFromProps(nextProps, currentpage);
// });
// }

componentDidUpdate(prevProps, prevState, snapshot) {
if (
this.props.items !== prevProps.items ||
Expand Down

0 comments on commit 6e5b585

Please sign in to comment.