Skip to content
New issue

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

Update UsingObjectSpreadOperator.md #3367

Merged
merged 1 commit into from
Aug 2, 2019
Merged

Conversation

mtpetros
Copy link
Contributor

@mtpetros mtpetros commented Mar 8, 2019

I think this warning on using the Object spread operator to clone objects is important. While, good style would encourage the use of flat objects in the reducer, not everyone is going to do that. Using the spread syntax in a reducer on a multidimensional data structure is opening up the door to state mutation.

I think this warning on using the Object spread operator to clone objects is important. While, good style would encourage the use of flat objects in the reducer, not everyone is going to do that. Using the spread syntax in a reducer on a multidimensional data structure is opening up the door to state mutation.
@netlify
Copy link

netlify bot commented Mar 8, 2019

Deploy preview for redux-docs ready!

Built with commit 4585cc2

https://deploy-preview-3367--redux-docs.netlify.com

@timdorr
Copy link
Member

timdorr commented Aug 2, 2019

Dunno why this was never merged. Thanks!

@timdorr timdorr merged commit 14efbe1 into reduxjs:master Aug 2, 2019
webMasterMrBin pushed a commit to webMasterMrBin/redux that referenced this pull request Aug 21, 2021
I think this warning on using the Object spread operator to clone objects is important. While, good style would encourage the use of flat objects in the reducer, not everyone is going to do that. Using the spread syntax in a reducer on a multidimensional data structure is opening up the door to state mutation.

Former-commit-id: 4430ae5
Former-commit-id: 63bf180
webMasterMrBin pushed a commit to webMasterMrBin/redux that referenced this pull request Aug 21, 2021
I think this warning on using the Object spread operator to clone objects is important. While, good style would encourage the use of flat objects in the reducer, not everyone is going to do that. Using the spread syntax in a reducer on a multidimensional data structure is opening up the door to state mutation.

Former-commit-id: 4430ae5
Former-commit-id: 63bf180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants