优化 store 更新

This commit is contained in:
liaoxuezhi 2019-11-01 20:46:15 +08:00
parent 6ebe38c16d
commit 1bf85bb589
1 changed files with 2 additions and 2 deletions

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
})
);