Major Changes
-
#4018
c59bb6a72
Thanks @Andarist! -machine.initialState
has been removed, you can usemachine.getInitialState(...)
instead -
#4018
c59bb6a72
Thanks @Andarist! -machine.transition(...)
andmachine.getInitialState(...)
require now anactorContext
argument -
#4063
e1f633ac9
Thanks @Andarist! - RemovedState['transitions']
. -
#4018
c59bb6a72
Thanks @Andarist! -machine.transition
no longer accepts state values. You have to resolve the state value to aState
before passing it tomachine.transition
-
#4041
50fe8cdd4
Thanks @davidkpiano! - Instances of "behavior" in the codebase have been replaced with "actor logic". -
#4055
eb7c8b387
Thanks @davidkpiano! - Thesystem
can now be accessed in all available actor logic creator functions:fromPromise(({ system }) => { ... }); fromTransition((state, event, { system }) => { ... }); fromObservable(({ system }) => { ... }); fromEventObservable(({ system }) => { ... }); fromCallback((sendBack, receive, { system }) => { ... });
-
#4059
bbea3bc4d
Thanks @Andarist! - RemovedState['actions']
. Actions are considered to be a side-effect of a transition, things that happen in the moment and are not meant to be persisted beyond that.