diff --git a/src/factory.tsx b/src/factory.tsx index 129b9cfb..fa5205da 100644 --- a/src/factory.tsx +++ b/src/factory.tsx @@ -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 }) );