Is there a way to detect and react whenever events occur across the page, such as animations starting or finishing, requests firing or failing? I want a component to be able to respond to these occurrences.
It's simple to watch a getter
by importing it through mapGetters
and watching it - is there a similar method for monitoring actions or mutations being triggered? For example, if a requestFailed
event occurs (via an action or commit), can my component then react to it in the view?