xstate@5.16.0
github-actions
released this
26 Jul 14:08
·
54 commits
to main
since this release
Minor Changes
-
#4996
5be796cd2
Thanks @ronvoluted! - The actor snapshotstatus
type ('active' | 'done' | 'error' | 'stopped'
) is now exposed asSnapshotStatus
-
#4981
c4ae156b2
Thanks @davidkpiano! - AddedsendParent
to theenqueueActions
feature. This allows users to enqueue actions that send events to the parent actor within theenqueueActions
block.import { createMachine, enqueueActions } from 'xstate'; const childMachine = createMachine({ entry: enqueueActions(({ enqueue }) => { enqueue.sendParent({ type: 'CHILD_READY' }); }) });