I'm working on a custom extension for my forum where I'd like some JS to run whenever the route changes. (In other words: when a user clicks a discussion, or clicks back to the index, etc.)
Is there an event that I can hook into for this? Are there docs covering the events in Flarum's frontend?
Thanks so much!