Skip to content

Releases: statelyai/xstate

@xstate/[email protected]

12 Nov 14:03
65088b6
Compare
Choose a tag to compare

@xstate/[email protected]

12 Nov 14:03
65088b6
Compare
Choose a tag to compare

Patch Changes

@xstate/[email protected]

12 Nov 14:02
65088b6
Compare
Choose a tag to compare

@xstate/[email protected]

12 Nov 14:02
65088b6
Compare
Choose a tag to compare

@xstate/[email protected]

12 Nov 14:02
65088b6
Compare
Choose a tag to compare

@xstate/[email protected]

17 Oct 11:49
b730b29
Compare
Choose a tag to compare

Patch Changes

[email protected]

21 Sep 06:54
fe91f9e
Compare
Choose a tag to compare

Patch Changes

@xstate/[email protected]

21 Sep 06:54
fe91f9e
Compare
Choose a tag to compare

@xstate/[email protected]

21 Sep 06:54
fe91f9e
Compare
Choose a tag to compare

@xstate/[email protected]

21 Sep 06:54
fe91f9e
Compare
Choose a tag to compare

Minor Changes

  • #5079 25963966c394fc904dc9b701a420b6e204ebe7f7 Thanks @davidkpiano! - The createStoreWithProducer(…) function now uses the new configuration API:

    import { createStoreWithProducer } from '@xstate/store';
    // DEPRECATED API
    // const store = createStoreWithProducer(
    //   producer,
    //   {
    //     count: 0
    //   },
    //   {
    //     inc: (context, event) => {
    //       context.count++;
    //     }
    //   }
    // );
    
    const store = createStoreWithProducer(producer, {
      context: {
        count: 0
      },
      on: {
        inc: (context, event) => {
          context.count++;
        }
      }
    });