|
@@ -4,7 +4,8 @@ import {
|
|
|
ReactiveEffect,
|
|
ReactiveEffect,
|
|
|
pauseTracking,
|
|
pauseTracking,
|
|
|
resetTracking,
|
|
resetTracking,
|
|
|
- shallowReadonly
|
|
|
|
|
|
|
+ shallowReadonly,
|
|
|
|
|
+ markRaw
|
|
|
} from '@vue/reactivity'
|
|
} from '@vue/reactivity'
|
|
|
import {
|
|
import {
|
|
|
ComponentPublicInstance,
|
|
ComponentPublicInstance,
|
|
@@ -462,7 +463,8 @@ function setupStatefulComponent(
|
|
|
// 0. create render proxy property access cache
|
|
// 0. create render proxy property access cache
|
|
|
instance.accessCache = {}
|
|
instance.accessCache = {}
|
|
|
// 1. create public instance / render proxy
|
|
// 1. create public instance / render proxy
|
|
|
- instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers)
|
|
|
|
|
|
|
+ // also mark it raw so it's never observed
|
|
|
|
|
+ instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers))
|
|
|
if (__DEV__) {
|
|
if (__DEV__) {
|
|
|
exposePropsOnRenderContext(instance)
|
|
exposePropsOnRenderContext(instance)
|
|
|
}
|
|
}
|