B
B
BaronSmile2021-02-25 11:48:20
React
BaronSmile, 2021-02-25 11:48:20

Customize page (pagination material ui)?

How to properly divide an article into pages, which I do not correctly transfer to count (otherwise I get the number of articles (500) and not pages). The CODE
component(pagination) is in the articles-list
API file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2021-02-25
@BaronSmile

How much you need to display on the page of articles - by this number and divide the total number of articles. articlesTotalCount / MAX_ARTICLES_ON_PAGE, and don't forget to round up just in case.
Only you have some kind of interesting back - it gives out articles at any offset even beyond the limit of the maximum number returned, I tried 200,000 and there are articles there)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question