react-tableql icon indicating copy to clipboard operation
react-tableql copied to clipboard

Server-side pagination

Open dnna opened this issue 3 years ago • 1 comments

Hello,

We have a large table with several 1000s of rows. We would like to paginate this on the server-side, with a limit and offset parameter and only fetch the needed rows on the frontend (and perform a new graphql query when the user changes page to fetch the next batch of results). Is there a way to achieve this with this component?

dnna avatar Aug 03 '22 19:08 dnna

Hello @dnna , Sorry for the late response. Currently, the pagination component can only deal with situations where it has and knows all the items that need to be displayed in the table. You can try to leave out the built-in pagination, and code up your own that will pass the necessary query to the table (workaround). Thank you for raising this issue!

Currently, the rewrite of the component is in progress. I will take into consideration your case and try to create a more modular and configurable pagination mechanism.

Danilo-Zekovic avatar Nov 29 '22 11:11 Danilo-Zekovic