Fix/remove Redux state mutation

This commit is contained in:
Lyubomir Marinov 2016-12-13 03:10:57 -06:00
parent 9a49a01713
commit 38b9819b68
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export function setStateProperties(target, source) {
* <tt>property</tt> to the specified <tt>value</tt>.
*/
export function setStateProperty(state, property, value) {
return _setStateProperty(state, property, value, /* copyOnWrite */ false);
return _setStateProperty(state, property, value, /* copyOnWrite */ true);
}
/* eslint-disable max-params */