github statelyai/xstate xstate@5.0.0-beta.46

latest releases: @xstate/vue@4.0.0, @xstate/store@2.6.1, @xstate/svelte@4.0.0...
pre-release11 months ago

Major Changes

Minor Changes

  • #4480 3e610a1f3 Thanks @Andarist! - Children IDs in combination with setup can now be typed using types.children:

    const machine = setup({
      types: {} as {
        children: {
          myId: 'actorKey';
        };
      },
      actors: {
        actorKey: child
      }
    }).createMachine({});
    
    const actorRef = createActor(machine).start();
    
    actorRef.getSnapshot().children.myId; // ActorRefFrom<typeof child> | undefined

Patch Changes

Don't miss a new xstate release

NewReleases is sending notifications on new releases.