From 62336085f497d42f0007bf9ad33f078d273605a6 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 1 May 2020 13:23:59 -0400 Subject: [PATCH] fix(runtime-core): avoid infinite warning loop for isRef check on component public proxy fix #1091 --- packages/runtime-core/src/componentProxy.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentProxy.ts b/packages/runtime-core/src/componentProxy.ts index e5fe0bde..71a056e8 100644 --- a/packages/runtime-core/src/componentProxy.ts +++ b/packages/runtime-core/src/componentProxy.ts @@ -194,7 +194,14 @@ export const PublicInstanceProxyHandlers: ProxyHandler = { hasOwn(globalProperties, key)) ) { return globalProperties[key] - } else if (__DEV__ && currentRenderingInstance) { + } else if ( + __DEV__ && + currentRenderingInstance && + // #1091 avoid isRef/isVNode checks on component instance leading to + // infinite warning loop + key !== '_isRef' && + key !== '_isVNode' + ) { if (data !== EMPTY_OBJ && key[0] === '$' && hasOwn(data, key)) { warn( `Property ${JSON.stringify(