Minor Changes
-
#4488
9ca3c3dcf
Thanks @davidkpiano! - Thespawn(...)
action creator has been renamed tospawnChild(...)
to avoid confusion.import { spawnChild, assign } from 'xstate'; const childMachine = createMachine({ on: { someEvent: { actions: [ // spawnChild(...) instead of spawn(...) spawnChild('someSrc'), // spawn() is used inside of assign() assign({ anotherRef: ({ spawn }) => spawn('anotherSrc') }) ] } } });
-
#4488
9ca3c3dcf
Thanks @davidkpiano! - Thestop(...)
action creator is renamed tostopChild(...)
, to make it clear that only child actors may be stopped from the parent actor.