statecharts / xstate-viz

MIT License
313 stars 63 forks source link

Loop transition not working inside parallel state node. #72

Open asan opened 4 years ago

asan commented 4 years ago

So loop transition(may be not best name, do you have some naming convention for this type?) example: https://xstate.js.org/viz/?gist=a4538161db2a559666e1ce8440a871d4 Transition executes every second, you can say it by animation and console.log.

But if we put it inside parallel state node: https://xstate.js.org/viz/?gist=98768528bb1b95c6236cde367c18ebc5 It triggers exactly one time.

Not sure is it visualisation problem or old xstate version bug. But second example works as expected with latest version of xstate(+@xstate/react if it matters).