I have a basic app. In it the app routes users dependent on app state and shows/hides the pages based on user interaction and app state.
I have a set of questions on some pages and on opening the page the code auto-scrolls the user to the next question on answer selection. All good there.
When I return to the same page, following the routes within the application, this interaction does not take place the second time round.
The questions are outputted via PHP. I'm thinking to use PHP to also generate the JS code to ensure execution, but ideally not as app state needs to be managed on the front end.