优化 store 更新
This commit is contained in:
parent
6ebe38c16d
commit
1bf85bb589
|
@ -681,10 +681,10 @@ export function HocStoreFactory(renderer: {storeType: string; extendsData?: bool
|
||||||
...store.data
|
...store.data
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} else if (isObjectShallowModified(props.scope, nextProps.scope)) {
|
} else if (props.scope !== nextProps.scope) {
|
||||||
store.initData(
|
store.initData(
|
||||||
createObject(nextProps.scope, {
|
createObject(nextProps.scope, {
|
||||||
...nextProps.data,
|
// ...nextProps.data,
|
||||||
...store.data
|
...store.data
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue