Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor-based pagination #3

Open
Kos opened this issue Feb 17, 2016 · 0 comments
Open

Cursor-based pagination #3

Kos opened this issue Feb 17, 2016 · 0 comments

Comments

@Kos
Copy link
Owner

Kos commented Feb 17, 2016

The code assumes a lot about page numbers - that they are integers and the initial page is 1.

When possible, the page number should be treated as an opaque identifier, so that you can paginate using cursors as well as page numbers. Page numbers shouldn't be generally produced by RTable, only taken from incoming DataResponses.

However, we'd still want to allow extra features that base on numerical pages, like "showing page 5 of 123" or "go to page 5". This might mean that RTable would have a separate mode for numerical and opaque page identifiers. Or we could just look at DataResponse and decide what to show (as in, if we have count and the page identifier is numeric, then assume sequential pages)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant