Releases: RisingStack/react-easy-state
Releases · RisingStack/react-easy-state
v5.1.0
Features
- Added a new
deriveStoresFromProps
static lifecycle method. Related docs is here.
Docs
- Documented optional update batching.
v5.0.2
Fixes
- Fixed not copying all props from function components as static props to
view
components.
v5.0.1
Fixes
- Fixed on error when using static getter React specific properties (like defaultProps) on view components.
v5.0.0
Breaking changes
- The auto bind feature got removed from both
store
andview
.
Features
- Added integration for an experimental debugger. You can test this out with
view(Comp, { devtool: console.log })
, the actual visual debugger is still in the making.
Fixes
- Added reactivity support for
in
operations. - Fixed reactivity in case of mutating a sparse array in an unused index, which is smaller then its current length.
v4.1.2
Fixes
- Fixed vanilla
setState
behavior. It is still not advised to usesetState
, use local stores instead.
Other Changes
- Removed dynamic type validations. Use TypeScript, if you need type safety.
v4.1.1
Fixes
- Expose TypeScript type definitions on npm
v4.1.0
Features
- Added TypeScript type definitions
v4.0.1
Fixes
- Removed package-lock
v4.0.0
Breaking changes
- Renamed
easyComp
toview
. - Renamed
easyState
tostore
. - Removed the observable
this.store
oneasyComp
components. Usethis.store = store({})
instead to create local observable stores yourself.
Features
- Uses
setState
instead offorceUpdate
behind the scenes. This delegates render scheduling to React, which makes lifecycle hooks more predictable and supports React Fiber’s priority based render scheduling.
v3.0.1
Improvements
- Improved the build process