Repository navigation
xstate@6.0.0-beta.11
Pre-release
Pre-release
·
6 commits
to next
since this release
Patch Changes
-
ee72c1b:
assertEvent(event, 'greet')now narrows generic event parameters, including members whosetypeis a union of literals. When a pattern might match multiple template-literal event types, check the payload before reading a property specific to one member. -
6cfa774: In
xstate/fsm, a literalalwaystransition with no target or with its own state as the target now throws a configuration error. Remove the transition or use analwaysfunction that returnsundefinedwhen it should stop.createFSM({ context: { ready: false }, initial: 'idle', states: { idle: { always: ({ context }) => context.ready ? undefined : { context: { ready: true } } } } });
-
fdcd5a6:
getPersistedSnapshot()now keeps a child actor whose invoke id is__proto__, instead of dropping it from the persisted children. Restoring such a snapshot brings the child back as with any other id.