github statelyai/xstate xstate@5.19.1

latest releases: @xstate/vue@4.0.1, @xstate/svelte@4.0.2, @xstate/solid@1.0.1...
2 days ago

Patch Changes

  • #5139 bf6119a7310a878afbf4f5b01f5e24288f9a0f16 Thanks @SandroMaglione! - Make spawn input required when defined inside referenced actor:

    const childMachine = createMachine({
      types: { input: {} as { value: number } }
    });
    
    const machine = createMachine({
      types: {} as { context: { ref: ActorRefFrom<typeof childMachine> } },
      context: ({ spawn }) => ({
        ref: spawn(
          childMachine,
          // Input is now required!
          { input: { value: 42 } }
        )
      })
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.