mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
Update usePagination.js
This commit is contained in:
parent
7c08467ddb
commit
ad3ce36930
@ -43,7 +43,7 @@ function reducer(state, action, previousState, instance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (action.type === actions.gotoPage) {
|
if (action.type === actions.gotoPage) {
|
||||||
const { pageCount, page, rows } = instance
|
const { pageCount, page } = instance
|
||||||
const newPageIndex = functionalUpdate(action.pageIndex, state.pageIndex)
|
const newPageIndex = functionalUpdate(action.pageIndex, state.pageIndex)
|
||||||
const cannnotPreviousPage = newPageIndex < 0
|
const cannnotPreviousPage = newPageIndex < 0
|
||||||
const cannotNextPage =
|
const cannotNextPage =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user