Major Changes
-
#3990
fe6db147a
Thanks @davidkpiano! - You can now add asystemId
to spawned actors to reference them anywhere in the system.const machine = createMachine({ // ... context: ({ spawn }) => ({ actorRef: spawn( createMachine({ // ... }), { systemId: 'actorRef' } ) }) });
-
#3991
98db493e4
Thanks @davidkpiano! - Theactor.onDone(...)
method is removed. Useactor.subscribe({ complete() {... } })
instead.- actor.onDone(() => { ... }) + actor.subscribe({ + complete() { + // ... + } +})