Skip to content

Commit 2ec0d29

Browse files
authoredMar 5, 2024··
docs: fix some links and typos (#5390)
1 parent 9dde1cd commit 2ec0d29

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎docs/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
"label": "Core Guides",
239239
"children": [
240240
{
241-
"label": "Table State (React)",
241+
"label": "Table State",
242242
"to": "framework/react/guide/table-state"
243243
}
244244
]

‎docs/framework/react/guide/table-state.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ title: Table State (React) Guide
66

77
Want to skip to the implementation? Check out these examples:
88

9-
- [kitchen sink](../examples/kitchen-sink)
10-
- [fully controlled](../examples/fully-controlled)
9+
- [kitchen sink](../framework/react/examples/kitchen-sink)
10+
- [fully controlled](../framework/react/examples/fully-controlled)
1111

1212
## Table State (React) Guide
1313

‎docs/guide/pagination.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ const table = useReactTable({
6363

6464
If you decide that you need to use server-side pagination, here is how you can implement it.
6565

66-
No pagination row model is needed for server-side pagination, but if you have provided it for other tables that do need it in a shared component, you can still turn off the client-side pagination by setting the `manualPagination` option to `true`. Setting to the `manualPagination` option to `true` will tell the table instance to use the `table.getPrePaginationRowModel` row model under the hood, and it will make the table instance assume that the `data` that you pass in is already paginated.
66+
No pagination row model is needed for server-side pagination, but if you have provided it for other tables that do need it in a shared component, you can still turn off the client-side pagination by setting the `manualPagination` option to `true`. Setting the `manualPagination` option to `true` will tell the table instance to use the `table.getPrePaginationRowModel` row model under the hood, and it will make the table instance assume that the `data` that you pass in is already paginated.
6767

6868
#### Page Count and Row Count
6969

70-
Also, the table instance will have no way of knowing how many rows/pages there are in total in your back-end unless you tell it. Provide either the `rowCount` or `pageCount` table option to let the table instance know how many pages there are in total. If you provide a `rowCount`, the table instance will calculate the `pageCount` internally from `rowCount` and `pageSize`. Otherwise, you can directly provide the `pageCount` if you already have it. If you don't know the page count, you can just pass in `-1` for the `pageCount`, but the `getCanNextPage` and `getCanPreviousPage` row model functions will always return `true` in this case.
70+
The table instance will have no way of knowing how many rows/pages there are in total in your back-end unless you tell it. Provide either the `rowCount` or `pageCount` table option to let the table instance know how many pages there are in total. If you provide a `rowCount`, the table instance will calculate the `pageCount` internally from `rowCount` and `pageSize`. Otherwise, you can directly provide the `pageCount` if you already have it. If you don't know the page count, you can just pass in `-1` for the `pageCount`, but the `getCanNextPage` and `getCanPreviousPage` row model functions will always return `true` in this case.
7171

7272
```jsx
7373
import { useReactTable, getCoreRowModel, getPaginationRowModel } from '@tanstack/react-table';

0 commit comments

Comments
 (0)
Please sign in to comment.