Hey,
You could create another custom state called “history” that saves a list of numbers. Everytime a user performs an action to take them to a new page, you add the current page to the history (history add page). When a user wants to go back you could find the last page they visited by using history:last item and then remove the last item after the action is completed.
Hopefully this helped :slight_smile:
Dylan

1 Like