Skip to content

ReactPaginate for unknown pageCount #381

Discussion options

You must be logged in to vote

The backend is responsible for sending how many pages it has available for this specific use case. This is a must with API's that involve pagination.

If for some reason it doesn't send the amount of pages you could write a function to fetch all available pages and then get the amount of pages from it. This is not idealy for obvious reasons.. That's why the API needs to return the amount of pages.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MonsieurV
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants