Skip to content

Releases: atlassian/react-sweet-state

v2.0.0

11 Feb 23:24
Compare
Choose a tag to compare

Breaking changes

  • drop support for treewalker and older versions of react with no hooks support
  • subscribers now use hooks internally, so while testing actions you might need to wrap the calls in act() to avoid React warnings

Improvement

  • 25% smaller bundle size
  • Fixed TypeScript types for defaultRegistry
  • Better memo for selectors to reduce unnecessary re-renders

v1.1.0

29 Aug 07:23
Compare
Choose a tag to compare

New features:

  • Typescript types
  • Better way to type actions parameters using StoreApi<State> type

Bugfix:

  • Ensure listeners are called following the React tree order

v1.0.3

09 Jul 11:15
Compare
Choose a tag to compare
  • Fix actions in thunk inner function not being recursively bound

v1.0.2

16 Jun 08:18
Compare
Choose a tag to compare
  • Sweet-state now has an official logo!
  • Improved Flow types for actions and selectors: actions return values are correctly typed and selectors can return any type of state, not necessarily an object.