From 3963b7e3280a90245f18a6791e84574ad0e0f41f Mon Sep 17 00:00:00 2001 From: nrgnrg Date: Fri, 26 Mar 2021 19:57:03 +0000 Subject: [PATCH] fix(runtime-core): remove props from SetupContext while in __dev__ mode --- packages/runtime-core/src/component.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 1295b75936b..6e2c1d53d78 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -780,9 +780,6 @@ export function createSetupContext( // We use getters in dev in case libs like test-utils overwrite instance // properties (overwrites should not be done in prod) return Object.freeze({ - get props() { - return instance.props - }, get attrs() { return new Proxy(instance.attrs, attrHandlers) },