Patch Changes
-
#4080
94526df03
Thanks @davidkpiano! - Themachine.options
property has been renamed tomachine.implementations
-
#4078
43fcdecf2
Thanks @Andarist! - Fixed spawned actors cleanup when multiple actors were spawned without explicit IDs assigned to them. -
#4083
163528529
Thanks @Andarist! - RemoveState['changed']
. A new instance ofState
is being created if there are matching transitions for the received event. If there are no matching transitions then the current state is being returned. -
#4064
047897265
Thanks @davidkpiano! - Guard objects can now reference other guard objects:const machine = createMachine( { initial: 'home', states: { home: { on: { NEXT: { target: 'success', guard: 'hasSelection' } } }, success: {} } }, { guards: { // `hasSelection` is a guard object that references the `stateIn` guard hasSelection: stateIn('selected') } } );