View on GitHubView PackagePublished: Jun 29, 2026

Release Notes

Patch Changes

  • #5563 2911278 Thanks @davidkpiano! - Fixed inference for selector context parameters when using createStoreLogic(...) with an input function.

    const counterLogic = createStoreLogic({
      context: (input: { initialCount: number }) => ({
        count: input.initialCount
      }),
      selectors: {
        count: (context) => context.count
      },
      on: {
        inc: (context) => ({ count: context.count + 1 })
      }
    });