Basically, I have a bunch of different states. I want the machine to be able to receive and update context externally via an event(regardless of which state it's in). I found this link saying how events can be root level... Using xstate, is it possible to configure an event that is applicable under all states and is handled in the same way across all states and substates?
But I also seem to remember how new assigns() don't actually take effect until the state changes.