Bug
The onExit action in a nested, parallel state is not triggered when transitioning out on a higher level
onEntry and onExit actions should be triggered
onExit action is not triggered, onEntry is though.
https://repl.it/@rodin/xstate-example
It logs D2 entry, but not D2 exit, which I think it should?
You're right, it should. I'm working on a major refactor that will address this (and also simplify the algorithms).
Thanks, that's all I needed to know.
Fixed in 05a19b8c4c20f4051fee67022a2f67a5d5de5861 (and available in xstate@next)
Most helpful comment
Fixed in 05a19b8c4c20f4051fee67022a2f67a5d5de5861 (and available in
xstate@next)