Is there a way to detect transition using back/forward browser button


I was wondering if anyone knows if there is a way to detect transitions that are triggered by the back/forward browser buttons. My use case is that I want the route to load the model from a local cache instead of fetching the data from the server when the user is navigating back using the back button.

Thank you in advanced!

does a popstate event listener work?

Hello, I’m a moderator here and it seems while trying to flag and delete a spammer here I inadvertently deleted this topic and the OP for this thread, @tgxworld. I undeleted the topic but am not able to undo the user delete. I am terribly sorry :frowning: