xstate icon indicating copy to clipboard operation
xstate copied to clipboard

Bug: Error when using a choose action in first state/stateless machine

Open xylophonehero opened this issue 3 years ago • 1 comments

Description

When using a choose action in the entry action on the root of a machine, I get the following error

image

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

xylophonehero avatar Jun 28 '22 14:06 xylophonehero

cc. @mattpocock @Andarist

davidkpiano avatar Jul 03 '22 11:07 davidkpiano