Minor Changes
- #3607
f95180510
Thanks @davidkpiano! - ThecreateModel(...)
function is now marked as deprecated, as it will be removed in XState version 5. It is recommended to use Typegen instead.
Patch Changes
-
#3677
a2ecf97ca
Thanks @Andarist! - Fixed an issue with targeted ancestors not being correctly exited when reented during external transitions. -
#3623
163c25562
Thanks @arromeo! - Fixed an issue with external transitions targeting ancestor states. In such a case,entry
actions were incorrectly called on the states between the source state and the target state for states that were not reentered within this transition. -
#3677
a2ecf97ca
Thanks @Andarist! - Fixed an issue with the active descendants of the targeted ancestor not being correctly reentered during external transitions. -
#3545
b9995f0
Thanks @with-heart! - Updatedpure
action types to allow actiontype
strings to be returned in the array.const machine = createMachine( { entry: ['doStuff'] }, { actions: { doStuff: pure(() => ['someAction']), someAction: () => console.log('executed by doStuff') } } );
Returning action
type
strings were already handled byxstate
and the types now correctly reflect that. -
#3666
5e0808eb4
Thanks @davidkpiano! - The warning for thepredictableActionArguments
setting has been improved to only warn if it is absent. You can disable the warning by settingpredictableActionArguments: false
. It's still recommended to set it totrue
though.