mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-13 05:20:26 +00:00
Update usePagination.js
This commit is contained in:
@@ -43,7 +43,7 @@ function reducer(state, action, previousState, instance) {
|
||||
}
|
||||
|
||||
if (action.type === actions.gotoPage) {
|
||||
const { pageCount, page, rows } = instance
|
||||
const { pageCount, page } = instance
|
||||
const newPageIndex = functionalUpdate(action.pageIndex, state.pageIndex)
|
||||
const cannnotPreviousPage = newPageIndex < 0
|
||||
const cannotNextPage =
|
||||
|
||||
Reference in New Issue
Block a user