on should be optional (final states, for one, won't have any transitions), but currently, if we create a config with any state missing the on key, the Event type turns to never.
This can be seen in the data fetching example: Try invoking send outside of the machine and you will get never as type.
on
should be optional (final states, for one, won't have any transitions), but currently, if we create a config with any state missing theon
key, theEvent
type turns tonever
.This can be seen in the data fetching example: Try invoking
send
outside of the machine and you will getnever
as type.