Support for pagination with unknown number of pages #99
sienkiewiczkm
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use a large online data source that doesn't expose total number of pages for results, I know only if the next one is available. Data source is outside my control, and I cannot add total rows field myself.
I would like to set
rowCount
to something like-1
(TanStack Table already acceptspageCount=-1
for that case: https://tanstack.com/table/v/docs/api/features/pagination#pagecount) and hide total row information from the table, something like this:I know if next page exists, so I can implement
canGetNextPage
function.At the moment, my workaround is to change
rowCount
on each page fetch, but it shows a misleading information that changes on each "Next page" click.I think simplest solution that enables my use case is hiding the second part of the following in file MRT_TablePagination.tsx
like:
Alternatives:
pageCount = -1
and be consistent with TanStack Table.Beta Was this translation helpful? Give feedback.
All reactions