浏览代码

Fix/remove Redux state mutation

master
Lyubomir Marinov 9 年前
父节点
当前提交
38b9819b68
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/base/redux/functions.js

+ 1
- 1
react/features/base/redux/functions.js 查看文件

38
  * <tt>property</tt> to the specified <tt>value</tt>.
38
  * <tt>property</tt> to the specified <tt>value</tt>.
39
  */
39
  */
40
 export function setStateProperty(state, property, value) {
40
 export function setStateProperty(state, property, value) {
41
-    return _setStateProperty(state, property, value, /* copyOnWrite */ false);
41
+    return _setStateProperty(state, property, value, /* copyOnWrite */ true);
42
 }
42
 }
43
 
43
 
44
 /* eslint-disable max-params */
44
 /* eslint-disable max-params */

正在加载...
取消
保存