Skip to content

v2.5.0

Compare
Choose a tag to compare
@albertogasparin albertogasparin released this 07 Dec 23:05
· 54 commits to master since this release

Types breaking changes

  • Due to recent Flow behaviour change, had to change Action type generics to be Action<State, Props, Return> from Action<State, Props, AllActions>. In most cases just removing the third generic will be fine. Also Action dispatch type is now better typed, so might surface some new errors.
  • Typescript ActionAny type has been renamed Action and supports providing correct return type (still default to void tho)

New feature

  • createSelector is a new exported member that allows creating reselect like selectors, but optimised for sweet-state
  • defaults.batchUpdates is a new settings that leverages React scheduler to batch updates and reduce the number of partial re-renders on state change. Currently defaults to false but might be turned on by default in the future