github statelyai/xstate xstate@5.0.0-alpha.3

latest releases: @xstate/svelte@3.0.5, @xstate/vue@3.1.4, @xstate/store@2.6.0...
pre-release17 months ago

Major Changes

  • #3939 91bc6fdd5 Thanks @davidkpiano! - Action/actor/delay/guard arguments are now consolidated into a single object argument. This is a breaking change for all of those things that are called with arguments.

    assign({
    - count: (context, event) => {
    + count: ({ context, event }) => {
        return context.count + event.value;
      }
    })
  • #3939 91bc6fdd5 Thanks @davidkpiano! - Guard arguments are now consolidated into a single object argument. This is a breaking change for all guards that are called with arguments.

    - guard: (context, event) => {
    + guard: ({ context, event }) => {
      return context.count + event.value > 10;
    }

Don't miss a new xstate release

NewReleases is sending notifications on new releases.