Skip to content

@xstate/store@0.0.4

Compare
Choose a tag to compare
@github-actions github-actions released this 13 May 00:51
· 11 commits to main since this release
e405ef1

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 }