在Redux+Immutable js的新版本中,我发现了toJS方法的一些性能问题,但在我的用例中,我找不到任何替代方法。因此,如何将列表转换为“对象数组”。__STATE__;
// but leave top level keys untouched for ReduxinitialState[key] = fromJS(initialState[key]);配置存储
import {combineRedu
在Redux中将状态的浅层副本列出为 // Problem: this only does a shallownewState.nestedState.nestedField = action.data
}
我还是不明白为什么这是Redux的问题。Redux中的还原器不是同步工作的吗?当还原器返回时,Redux只会考虑返回的新状态并丢弃旧的