github statelyai/xstate @xstate/store@0.0.4

latest releases: xstate@5.14.0, @xstate/store@1.0.0, xstate@5.13.2...
one month ago

Patch Changes

  • #4890 6d92b7770 Thanks @davidkpiano! - The context type for createStoreWithProducer(producer, context, transitions) will now be properly inferred.

    const store = createStoreWithProducer(
      produce,
      {
        count: 0
      },
      {
        // ...
      }
    );
    
    store.getSnapshot().context;
    // BEFORE: StoreContext
    // NOW: { count: number }

Don't miss a new xstate release

NewReleases is sending notifications on new releases.