Releases: atlassian/react-sweet-state
Releases · atlassian/react-sweet-state
v2.0.0
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
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
- Fix
actions
in thunk inner function not being recursively bound
v1.0.2
- 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.