Commit 0ecc515
Update UsingObjectSpreadOperator.md (reduxjs#3367)
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: 63bf1801 parent d65cfc1 commit 0ecc515
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments