瀏覽代碼

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 */

Loading…
取消
儲存