Major Changes
Minor Changes
-
#4480
3e610a1f3
Thanks @Andarist! - Children IDs in combination withsetup
can now be typed usingtypes.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