diff --git a/.changeset/hot-socks-wave.md b/.changeset/hot-socks-wave.md new file mode 100644 index 0000000000..d14b5ee9a7 --- /dev/null +++ b/.changeset/hot-socks-wave.md @@ -0,0 +1,5 @@ +--- +'@xstate/store': major +--- + +Release `@xstate/store` version 1.0 diff --git a/packages/xstate-store/src/store.ts b/packages/xstate-store/src/store.ts index d059a4e770..6ecbbd4c97 100644 --- a/packages/xstate-store/src/store.ts +++ b/packages/xstate-store/src/store.ts @@ -187,10 +187,9 @@ export function createStoreWithProducer< TContext extends StoreContext, TEventPayloadMap extends EventPayloadMap >( - producer: NoInfer<( - context: TContext, - recipe: (context: TContext) => void - ) => TContext>, + producer: NoInfer< + (context: TContext, recipe: (context: TContext) => void) => TContext + >, initialContext: TContext, transitions: { [K in keyof TEventPayloadMap & string]: (