Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Apr 16:26
· 2 commits to main since this release
4e76bf0

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.