File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 4
4
pauseTracking ,
5
5
resetTracking ,
6
6
shallowReadonly ,
7
- proxyRefs
7
+ proxyRefs ,
8
+ markRaw
8
9
} from '@vue/reactivity'
9
10
import {
10
11
ComponentPublicInstance ,
@@ -597,7 +598,7 @@ function setupStatefulComponent(
597
598
instance . accessCache = Object . create ( null )
598
599
// 1. create public instance / render proxy
599
600
// also mark it raw so it's never observed
600
- instance . proxy = new Proxy ( instance . ctx , PublicInstanceProxyHandlers )
601
+ instance . proxy = markRaw ( new Proxy ( instance . ctx , PublicInstanceProxyHandlers ) )
601
602
if ( __DEV__ ) {
602
603
exposePropsOnRenderContext ( instance )
603
604
}
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import {
18
18
ReactiveEffect ,
19
19
toRaw ,
20
20
shallowReadonly ,
21
- ReactiveFlags ,
22
21
track ,
23
22
TrackOpTypes ,
24
23
ShallowUnwrapRef ,
@@ -268,11 +267,6 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
268
267
appContext
269
268
} = instance
270
269
271
- // let @vue /reactivity know it should never observe Vue public instances.
272
- if ( key === ReactiveFlags . SKIP ) {
273
- return true
274
- }
275
-
276
270
// for internal formatters to know that this is a Vue instance
277
271
if ( __DEV__ && key === '__isVue' ) {
278
272
return true
You can’t perform that action at this time.
0 commit comments