Skip to content

Instantly share code, notes, and snippets.

@beatlecz
Created September 17, 2018 13:33
Show Gist options
  • Save beatlecz/eae775000a8543dd39feb6f3ce2f3910 to your computer and use it in GitHub Desktop.
Save beatlecz/eae775000a8543dd39feb6f3ce2f3910 to your computer and use it in GitHub Desktop.
[SOME_ACITON]: (state, {index, name}) => {
return state
.mergeIn(['orders', action.index], { name: name })
.mergeIn(['orders', action.index, 'buttonState'], { status: 'SomeStatus' })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment