Requesting Help regarding implementation of Global Filter along with Controlled Pagination #2768
-
Hi All, I am a beginner and new to this, as a result, I am facing some issues. I tried to merge Global Filter along with controlled pagination. The Global Filter is working fine now, but when I try to change the page the Table gets refresh back to Page 0. Please help me learn how to do it correctly. The code sandbox link is below |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think the issue is resolved. I have taken the reference of the following link. The solution I found is as follows (Don't know if its the correct way to do it):
|
Beta Was this translation helpful? Give feedback.
I think the issue is resolved. I have taken the reference of the following link. The solution I found is as follows (Don't know if its the correct way to do it):
useTable( { columns, data, manualPagination: true, pageCount: controlledPageCount, autoResetPage: false, autoResetExpanded: false, autoResetGroupBy: false, autoResetSelectedRows: false, autoResetSortBy: false, autoResetFilters: false, autoResetRowState: false }, useGlobalFilter, useSortBy, usePagination );