github statelyai/xstate xstate@5.0.0-beta.27

pre-release12 months ago

Major Changes

  • #4248 d02226cd2 Thanks @Andarist! - Removed the ability to pass a string value directly to invoke. To migrate you should use the object version of invoke:

    -invoke: 'myActor'
    +invoke: { src: 'myActor' }

Minor Changes

  • #4228 824bee882 Thanks @Andarist! - Params of actions and guards can now be resolved dynamically

    createMachine({
      types: {} as {
        actions:
          | { type: 'greet'; params: { surname: string } }
          | { type: 'poke' };
      },
      entry: {
        type: 'greet',
        params: ({ context }) => ({
          surname: 'Doe'
        })
      }
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.