This repository was archived by the owner on Sep 16, 2020. It is now read-only.
Releases: sergeysova/redux-symbiote
Releases · sergeysova/redux-symbiote
v2.4 🌵
Features
e1ea00d pass action to defaultReducer option
Now defaultReducer receives original action, passed to symbiote reducer.
You can handle any action type in symbiote.
import { createSymbiote } from 'redux-symbiote'
import { reset } from '../actions-types'
const initialState = {
value: 0,
}
const defaultReducer = (prevState, { type }) => {
if (type == reset) return initialState
return prevState
}
export const { actions, reducer } = createSymbiote(initialState, {
set: (prevState, value) => ({ value }),
}, { defaultReducer, namespace: 'example' })
91b8b26 upgrade babel (#15)
Babel was upgraded from 6.x to 7.0
e5b7c2f add typescript base typings (#13)
Thanks to @igorkamyshev