We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6233608 commit 11f38d8Copy full SHA for 11f38d8
packages/runtime-core/src/component.ts
@@ -4,7 +4,8 @@ import {
4
ReactiveEffect,
5
pauseTracking,
6
resetTracking,
7
- shallowReadonly
+ shallowReadonly,
8
+ markRaw
9
} from '@vue/reactivity'
10
import {
11
ComponentPublicInstance,
@@ -462,7 +463,8 @@ function setupStatefulComponent(
462
463
// 0. create render proxy property access cache
464
instance.accessCache = {}
465
// 1. create public instance / render proxy
- instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers)
466
+ // also mark it raw so it's never observed
467
+ instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers))
468
if (__DEV__) {
469
exposePropsOnRenderContext(instance)
470
}
0 commit comments