From a7f45b7089369107b75fc21dfdd4de9d3ae1753b Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Fri, 1 Nov 2019 20:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20store=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/factory.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/factory.tsx b/src/factory.tsx index 129b9cfb4..fa5205dab 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 }) );