If there are 10 items in a list and we render it with pageSize 2 we get 5 pages. If we select the 5th page (currentPage = 5) and change the pageSize to 10 we get an empty list since the currentPage is still at 5 and the pageSize is changed to 10 which makes it only one page.
If there are 10 items in a list and we render it with pageSize 2 we get 5 pages. If we select the 5th page (currentPage = 5) and change the pageSize to 10 we get an empty list since the currentPage is still at 5 and the pageSize is changed to 10 which makes it only one page.