This repository was archived by the owner on Jan 23, 2019. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork1
Releases: kettanaito/redux-dynamics
Releases · kettanaito/redux-dynamics
Release 1.0
Release 1.0Pre-release
Pre-release
Unstable release of the refactoredredux-dynamics.
Change log
- Changed strong-types solution to TypeScript
- Introduced new
Reducerclass to create reducers - Introduced more declarative way of subscribing to actions:
constcommentReducer=newReducer({likes:0});commentReducer.subscribe('ADD_LIKE',(state,action,context)=>{constnextState=state.get('likes')+action.get('amount');returnnextState;});exportdefaultcommentReducer;
- Convert
Reducerinstances to plain pure functions with.toFunction():
import{createReducer}from'redux';importcommentReducerfrom'./commentReducer';exportdefaultcreateReducer({comment:commentReducer.toFunction()});
Assets2
Uh oh!
There was an error while loading.Please reload this page.