From: Evan You Date: Fri, 1 May 2020 17:23:59 +0000 (-0400) Subject: fix(runtime-core): avoid infinite warning loop for isRef check on component public... X-Git-Tag: v3.0.0-beta.6~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62336085f497d42f0007bf9ad33f078d273605a6;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): avoid infinite warning loop for isRef check on component public proxy fix #1091 --- diff --git a/packages/runtime-core/src/componentProxy.ts b/packages/runtime-core/src/componentProxy.ts index e5fe0bdeea..71a056e859 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(