gregnb / gregnb/mui-datatables

Cursor based pagination

Open
#554 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

Hi
Is it possible to use cursor based pagination with mui-datatables.

The GraphQl API I have designed returns cursors for the next and previous set of results along with booleans of hasNext and hasPrev.

I can use the `onTableChange` event to fire my mutations to get the next set of data but can't figure out how to enable the next and previous buttons based on hasNext and hasPrev booleans? Is this possible without a total count?

The only solution I can think of is to create a custom footer, which I was trying to avoid.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.