- Prevent state from being destroying when components with the same keys
enter/exit the view(due to destroying being done in a timeout)
- Add support for mergeProps ( thanks @farism )
- Cleanup filterGlobalActionscallback upon component unmount
- Linting
- Fixed a bug preventing composition of `local` HOC with react-redux `connect`
- Add `react-redux` as a peer dependency
- Hoist the wrapped component contextTypes into the `local` HOC( thanks @kuon )
- Hoist all non react statics into the `local` HOC
- Provide a display name for components generated by `local`
- Stores are now shareable among all components that have the same
key
- Pass in the component context to all of callback style functions defined on
local
.
Configuration now can be defined as
local({
key: (props, context) => ...,
createStore: (props, existingState, context) => ...
persist: (props, context) => ...
})
- Add the
mergeReducers
utility in 'redux-fractal/utils'
- Renamed 'triggerComponentKey' and 'currentComponentKey' set on actions meta by
redux-fractal
to reduxFractalTriggerComponent and reduxFractalCurrentComponent to prevent
name collisions with user code.
- Documentation improvements
- Made the
persist
flag configurable by being able to define it also as a function of props
- Add ability to persist state when component unmounts by configuring
local
HOC with a persist
boolean flag