From 2766e405cdb5ff4f58dafee80b02f6f05145c231 Mon Sep 17 00:00:00 2001 From: Rafael Mora Date: Sun, 3 Mar 2019 12:10:01 -0500 Subject: [PATCH] fix(initial values): initial values --- src/react-next-paging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react-next-paging.js b/src/react-next-paging.js index 1433d52..1b29f4a 100644 --- a/src/react-next-paging.js +++ b/src/react-next-paging.js @@ -72,7 +72,7 @@ class ReactNextPaging extends React.Component { componentDidUpdate(prevProps, prevState, snapshot) { if ( - this.props.items !== prevProps.items || + this.props.items.length !== prevProps.items.length || this.props.itemsperpage !== prevProps.itemsperpage || this.props.pagesspan !== prevProps.pagesspan ) {