Server side pagination (Hybrid type) in Tanstack LIT Grid #6124
Unanswered
NavneetVaid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was trying to create a web component with the help of tanstack lit flavour, i was adding few features and i want to add server side pagination to it but a hybrid one, I am facing one issue as of now and need help with below question urgently. Any help would be highly appreciated
So basically what i want is that i will on initial load fetch 100 records and my records per page is 10, so now for the next 10 pages my grid would be client side as we have 100 records, now when i go to page 11 i hit the api and bring records from 50-150 basically page 5th to 15th because my user when on page 11 can go back and forth so i want record for both sides. What problem i am facing that when i set the pagination state in this scenario the tanstack grid is behaving weird and is not able to map data correctly. Sometime it jumps to page 1, sometimes it just doesnt show data at all in grid. What i was wondering if we support this kind of pagination ? if yes do we have any example for this hybrid pagination ?
Beta Was this translation helpful? Give feedback.
All reactions