优化 store 更新

This commit is contained in:
liaoxuezhi 2019-11-01 20:46:15 +08:00
parent 6ecbf9585b
commit a7f45b7089

View File

@ -681,10 +681,10 @@ export function HocStoreFactory(renderer: {storeType: string; extendsData?: bool
...store.data
})
);
} else if (isObjectShallowModified(props.scope, nextProps.scope)) {
} else if (props.scope !== nextProps.scope) {
store.initData(
createObject(nextProps.scope, {
...nextProps.data,
// ...nextProps.data,
...store.data
})
);