github statelyai/xstate xstate@4.23.1

latest releases: @xstate/react@4.1.2, @xstate/vue@3.1.3, xstate@5.18.1...
3 years ago

Patch Changes

  • 141c91cf #2436 Thanks @Andarist! - Fixed an issue where, when using model.createMachine, state's context was incorrectly inferred as any after refinement with .matches(...), e.g.

    // `state.context` became `any` erroneously
    if (state.matches('inactive')) {
      console.log(state.context.count);
    }

Don't miss a new xstate release

NewReleases is sending notifications on new releases.