react-component / pagination

React Pagination
https://pagination-react-component.vercel.app/
MIT License
658 stars 325 forks source link

Number of Pages are showing wrong in case of dynamic pagesize #567

Open TheLeftyCoder opened 3 months ago

TheLeftyCoder commented 3 months ago

image

here my questionsPerPageArray is [5, 5, 4, 5 , 5 , 5, 3]

what's happening when I'm on 1st page it is showing me 7 page total , but when I goes to 3rd page it is showing me 8 pages total , like 8*4 = 32

so that's why 8 pages, likewise when I go to last page, it is showing me 11 pages total , 3*11 = 33

but I don't want that , I want to make dynamic number of question and number of pages should be consistent