Created
August 31, 2017 18:14
-
-
Save mattraykowski/9acc43f5aaf0d28a6b89b198c35fad14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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