xstate
xstate copied to clipboard
Bug: Error when using a choose action in first state/stateless machine
Description
When using a choose action in the entry action on the root of a machine, I get the following error
Curiously, when I add a choose action later on in the machine in a non-initial state, the error disappears
Expected result
Ability to use the choose action in entry action on root of machine without an error
Actual result
There is an error
Reproduction
https://github.com/xylophonehero/xstate-initial-choose-action
Additional context
No response
cc. @mattpocock @Andarist