github statelyai/xstate @xstate/store@3.4.3

latest releases: @xstate/store@3.5.1, @xstate/store@3.5.0
20 days ago

Patch Changes

  • #5230 86e6b58dd18337202df8e319a42f85523d5d0d30 Thanks @davidkpiano! - The types for emitting events with no payload have been fixed so that the following code works:

    const store = createStore({
      emits: {
        incremented: () => {}
      },
      on: {
        inc: (ctx, ev, enq) => {
          // No payload is expected
          enq.emit.incremented();
        }
      }
    });

    Previously, this would have been an error because the incremented event was expected to have a payload.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.