Dear All,
感谢shuaishuaiguo(郭帅小伙伴)的code-review和pull request
Sorry, ReactNative.
在1.4.3中重构代码的过程中将storesubscribe的回调,改变状态的方式改成了
store.subscribe(this._handleStoreChange);
_handleStoreChange(state) {
this.setState((preState) => state)
}
这样做的好处,是不需要去merge state,直接返回state替代之前state.
但是发了版本之后,在reactnative中测试发现,会出发reactnative的object.assign的polyfill的enumerate的false
规则,据说是为了保证rn的性能。
因为1.4.4又回到以前的setState来解决这个问题。
另外,在index.d.ts的类型文件中暴露出来DQL.