Open full view…

How to access the 'back button' route/event?

Mon, 19 Dec 2016 21:36:40 GMT

I'm using the riot router for my project, and when I use the back button, it takes me to the correct location. However, I recently learned that I will need to execute some code when this occurs. The reason for this is that I have a video conferencing tool that will continue to run when the back button is pressed (i.e. camera and microphone are still engaged and publishing), and I need to shut it down when the user navigates away from the page. I can do this with normal routing, but with back button I do not know how. What's the technique to use in this case? Thanks.