We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do we handle initial state as state passed down by store?
const initialState = { count: 1 } export default (reducers) => ( createStore( combineReducer(reducers), initialState, applyMiddleware(...) ) )
do we have access to the initial state on State?
export default State('count', { initial: { count: state.count || 1 // should be the same as the initialized value }, addCount, subCount })
EDIT sorry it seems i went ahead not looking at the source. https://github.com/jumpsuit/jumpstate/blob/master/src/state.js#L32 thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
how do we handle initial state as state passed down by store?
do we have access to the initial state on State?
EDIT
sorry it seems i went ahead not looking at the source.
https://github.com/jumpsuit/jumpstate/blob/master/src/state.js#L32
thanks
The text was updated successfully, but these errors were encountered: