Can't get global filtering to work with manual pagination #4644
Replies: 2 comments
-
Hello!
I'm not sure why you're not seeing some of the data with manual pagination being disabled. Are the columns being filtered (https://tanstack.com/table/v8/docs/api/features/filters?from=reactTableV7)? Or are you missing entire rows? As I have understood the API, manual pagination should only be used when you're filtering/paginating in your backend (when fetching the data from your endpoints). If you're filtering on all of the data in the client, you should let the table paginate for you (manual pagination should be off). |
Beta Was this translation helpful? Give feedback.
-
If you're using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get global filtering working with manual pagination in react-table. I'm in the unfortunate position of inheriting an incomplete web app with lots of broken features that I'm tasked to fix, but I've hit a block on this issue. We have manual pagination enabled, which seems to work just fine switching between pages and viewing the table data. The problem is that global filtering (such as text search) is not working across the table data. It is only searching the current page of data visible in the table.
Global filtering kind of works when manual pagination is disabled, but this creates odd behavior where I'm not seeing all of the data in the table when toggling between pages or searching.
Here is the react-table component:
And then in the component that generates the react-table:
Beta Was this translation helpful? Give feedback.
All reactions