Skip to content

Commit 22e1ac4

Browse files
authoredJun 14, 2024··
docs(pagination): rephrase autoResetPageIndex behaviour (#5601)
* docs(pagination): rephrase autoResetPageIndex behaviour * Update pagination.md
1 parent f7e69bc commit 22e1ac4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎docs/guide/pagination.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ Besides the `manualPagination`, `pageCount`, and `rowCount` options which are us
142142
143143
#### Auto Reset Page Index
144144
145-
The `autoResetPageIndex` table option is true by default, and it will reset the `pageIndex` to `0` when page-altering state changes occur, such as when the `data` is updated, filters change, grouping changes, etc. This is useful to prevent the table from showing an empty page when the `pageIndex` is out of range.
146-
147-
However, you can opt out of this behavior by setting the `autoResetPageIndex` option to `false`.
145+
By default, `pageIndex` is reset to `0` when page-altering state changes occur, such as when the `data` is updated, filters change, grouping changes, etc. This behavior is automatically disabled when `manualPagination` is true but it can be overridden by explicitly assigning a boolean value to the `autoResetPageIndex` table option.
148146
149147
```jsx
150148
const table = useReactTable({

0 commit comments

Comments
 (0)
Please sign in to comment.