Hello!
I'm using xstate to control the rendering in a vscode extension I'm building.
Currently I have a couple of actions like renderLoading etc that are fired on entry to various states.
To make my state machine as simple as possible, I'm thinking of extracting that logic to an external actor.subscribe call that listens to the machine's state and calls those renderXYZ functions itself.
Is there something in xstate itself that would allow me to listen only to state changes (and re-entries)? Or would I have to build something with actor.subscribe and keep track of previous values myself?