Iterate over pages

Is it possible to iterate over several pages with a button or similar? (Something like ‘next page’ button).
The problem that occurs is that the app runs from the beginning when the button is pressed and therefore a counter is never really raised.

It would be very helpful if you could answer this question or maybe have examples where something similar is documented.
Thanks

Currently there is no official implementation of a Session State which would allow you to maintain variables across several runs (needed for a counter like you said).

There are, however, small workarounds which work until an official method is implemented.
You can check them out here and here.