Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hello there, here is my question:

Suppose I have 100 objects and on the UI I have a pagination component that shows 10 objects each page.
Screenshot 2023-02-13 at 10 35 15 PM

To be able to jump to any page, currently in backend, I need to fetch all 100 objects and slice the needed range of array and return to UI. However, it results in extra cost of data tranfer and processing.

I thought of few ways, e.g. caching the whole list, but didnt figure out a way to efficiently let my backend be notified by new changes (can not get rid of possibilities of stale reads by just polling the API within some intervals).

Is there a way to just get a given index range of objects? is that possible solely relying on existing APIs?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.