I used the number 100000 just for this example so that we know that an infinite number of pages need to be displayed, the image and the title also showed exactly the same explanation as yours, which means loading the page dynamically
I had seen this library of yours before, the number of pages in your example is already specified, of course, I was working with B4َA a year ago and recently I see many changes in the program codes that I need to learn, but how can I make your example dynamic now, for example, I mentioned in the explanation that I think that in the end two or three pages are not needed, for example, in the swipe to the right mode, how can I make the next page dynamic and display it and delete the current page, or in the swipe to the left mode, how can I make the previous page dynamic and display it and delete the current page