#with Xstate api It is possible to get the next posible state without actually transitioning into it?

1 messages · Page 1 of 1 (latest)

quiet phoenix
#

I'm creating yet another wizard form, this when one of the text fields (in this case a state) is filled, it should show the next field, by default the fields are shown one by one after selecting a value for the current state.

echo creek
#

You can use machine.transition. It’s a pure function and doesn’t make the actual transition.