XState 5.23.0

5.23.0
Added 1
  • Add `system.getAll` that returns a record of running actors within the system by their system id
Minor Changes
  • #5387 53dd7f1 Thanks @farskid! - Adds system.getAll that returns a record of running actors within the system by their system id

    const childMachine = createMachine({});
    const machine = createMachine({
      // ...
      invoke: [
        {
          src: childMachine,
          systemId: 'test'
        }
      ]
    });
    const system = createActor(machine);
    
    system.getAll(); // { test: ActorRefFrom<typeof childMachine> }
    
View original

Upgraded? How did it go?

Discussion