Minor Changes
- #2835
029f7b75a
Thanks @woutermont! - Added interop observable symbols toActorRef
so that actor refs are compatible with libraries like RxJS.
Patch Changes
-
#2864
4252ee212
Thanks @davidkpiano! - Generated IDs for invocations that do not provide anid
are now based on the state ID to avoid collisions:createMachine({ id: 'test', initial: 'p', states: { p: { type: 'parallel', states: { // Before this change, both invoke IDs would be 'someSource', // which is incorrect. a: { invoke: { src: 'someSource' // generated invoke ID: 'test.p.a:invocation[0]' } }, b: { invoke: { src: 'someSource' // generated invoke ID: 'test.p.b:invocation[0]' } } } } } });
-
#2925
239b4666a
Thanks @devanfarrell! - ThesendTo(actorRef, event)
action creator introduced in4.27.0
, which was not accessible from the package exports, can now be used just like other actions:import { actions } from 'xstate'; const { sendTo } = actions;