Skip to content

v1.5.9

Compare
Choose a tag to compare
@charkour charkour released this 03 Jan 23:13
· 134 commits to main since this release

What's Changed

  • Replaced omit with exclude and include by @ivoilic in #33 πŸŽ‰

Usage

// Only field1 and field2 will be tracked
const useStoreA = create<StoreState>(
  undoMiddleware(
    set => ({ ... }),
    { include: ['field1', 'field2'] }
  )
);

// Everything besides field1 and field2 will be tracked
const useStoreB = create<StoreState>(
  undoMiddleware(
    set => ({ ... }),
    { exclude: ['field1', 'field2'] }
  )
);

New Contributors

Full Changelog: v1.5.8...v1.5.9