From cce36fb8ab3106266351ada5c76a42582aee8517 Mon Sep 17 00:00:00 2001 From: Rafael Mora Date: Sun, 3 Mar 2019 11:27:19 -0500 Subject: [PATCH] fix(initial values): initial values --- src/react-next-paging.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/react-next-paging.js b/src/react-next-paging.js index e7c0874..f02046b 100644 --- a/src/react-next-paging.js +++ b/src/react-next-paging.js @@ -81,23 +81,6 @@ class ReactNextPaging extends React.Component { } } - // componentDidUpdate(prevProps, prevState, snapshot) { - // const { items } = this.props; - // if (items.length != prevProps.items.length) { - // const { itemsperpage } = this.props; - // const { pagesspan } = this.state; - // let newnopages = getNoPages(items, itemsperpage); - // let pagesforarray = isNoPagesLargerPagesSpan(newnopages, pagesspan) - // ? pagesspan - // : newnopages; - // this.setState({ - // nopages: newnopages, - // noitems: items.length, - // pagesforarray: pagesforarray - // }); - // } - // } - generateStateFromProps = (props, currentpage = 1) => { const { items, itemsperpage, pagesspan } = props; let newnopages = getNoPages(items, itemsperpage);