pauseTracking,
resetTracking,
shallowReadonly,
- proxyRefs
+ proxyRefs,
+ markRaw
} from '@vue/reactivity'
import {
ComponentPublicInstance,
instance.accessCache = Object.create(null)
// 1. create public instance / render proxy
// also mark it raw so it's never observed
- instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers)
+ instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers))
if (__DEV__) {
exposePropsOnRenderContext(instance)
}
ReactiveEffect,
toRaw,
shallowReadonly,
- ReactiveFlags,
track,
TrackOpTypes,
ShallowUnwrapRef,
appContext
} = instance
- // let @vue/reactivity know it should never observe Vue public instances.
- if (key === ReactiveFlags.SKIP) {
- return true
- }
-
// for internal formatters to know that this is a Vue instance
if (__DEV__ && key === '__isVue') {
return true