Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattraykowski/9acc43f5aaf0d28a6b89b198c35fad14 to your computer and use it in GitHub Desktop.
Save mattraykowski/9acc43f5aaf0d28a6b89b198c35fad14 to your computer and use it in GitHub Desktop.
// this.
return {
...state,
loading: true,
thing: {
...state.thing,
name: payload
},
}
// or this?
return state
.set('loading', true)
.updateIn(['thing', 'name'], () => payload);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment