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
export default handleActions({ [type['INCREMENT']]: (state) => ({...state,value: state.value + 1}), [type['INCREMENT_IF_ODD']]: (state) => ({...state, value: (state.value % 2 !== 0) ? state.value + 1 : state.value}), [type['DECREMENT']]: (state) => ({...state, value: state.value - 1}) }, { value: 2 }) type['INCREMENT'] is Symbol() , it's false.but type['INCREMENT'] is string, it's true.Why?
export default handleActions({ [type['INCREMENT']]: (state) => ({...state,value: state.value + 1}), [type['INCREMENT_IF_ODD']]: (state) => ({...state, value: (state.value % 2 !== 0) ? state.value + 1 : state.value}), [type['DECREMENT']]: (state) => ({...state, value: state.value - 1}) }, { value: 2 })
The text was updated successfully, but these errors were encountered:
Some time ago I had this same idea. Here is the response: reduxjs/redux#4
Sorry, something went wrong.
No branches or pull requests
export default handleActions({ [type['INCREMENT']]: (state) => ({...state,value: state.value + 1}), [type['INCREMENT_IF_ODD']]: (state) => ({...state, value: (state.value % 2 !== 0) ? state.value + 1 : state.value}), [type['DECREMENT']]: (state) => ({...state, value: state.value - 1}) }, { value: 2 })
type['INCREMENT'] is Symbol() , it's false.but type['INCREMENT'] is string, it's true.Why?
The text was updated successfully, but these errors were encountered: