Cursor pagination with tanstack table
Looked online and on the discord to see if theres a straightforward way to implement tanstack table using cursor pagination.
Right now my backend returns a next and previous cursor (item id), along with the query total and some other information.
Seems like I need to implement manual pagination to convert the cursor information to a pageIndex. Want to see if anyone else had thoughts!
1 Reply
correct-apricot•3mo ago
Yes. If your data is being sorted and paginated server side you will need to use manual pagination. It’s pretty straightforward to implement.