react-final-table icon indicating copy to clipboard operation
react-final-table copied to clipboard

Manual Pagination and Async Loading Data

Open fortezhuo opened this issue 5 years ago • 2 comments

Hi, Can I use this library for manual pagination with async data ?

fortezhuo avatar Dec 03 '20 05:12 fortezhuo

Can you elaborate what you mean? There is pagination already.

Buuntu avatar Feb 16 '21 02:02 Buuntu

Yes.. But the pagination lacks of async loading data based on server side pagination. I think it will be perfect if we have 1 million documents and we can limit the fetch for 25 documents. And if we click next page, the library will fetch the next 25 documents..

https://react-table.tanstack.com/docs/api/usePagination#table-options

- manualPagination: Bool
    - Enables pagination functionality, but does not automatically perform row pagination.
    - Turn this on if you wish to implement your own pagination outside of the table (eg. server-side pagination or any other manual pagination technique)

fortezhuo avatar Feb 16 '21 07:02 fortezhuo