Replies: 1 comment
-
Assuming you've added your state management as you mentioned const [state, setState] = React.useState(table.initialState); table.setOptions(prev => ({ Now, to manage pagination manually, you can set the pageIndex and pageSize properties in your state when the user interacts with the pagination controls. You'll need to update these properties in your state when the user changes the page. Here's an example. // Handle changing the page // Handle changing the number of items per page In your table component, you can now set the pageIndex and pageSize to those values from your state <ReactTable Cheers! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Im looking at the fully controlled example but wehen i try to add things like pagination, filtering, solumn visibility, none of these things work. the i see the setState get called on change but the state stays the same. Not sure hwat im doing wrong here. Without fully controlling the state all these feature work
for exmplae simply add this to the controlled pagination example and now the pagination doesnt work
Beta Was this translation helpful? Give feedback.
All reactions