refactor: use markRaw instead of internal flag check
This commit is contained in:
@@ -18,7 +18,6 @@ import {
|
||||
ReactiveEffect,
|
||||
toRaw,
|
||||
shallowReadonly,
|
||||
ReactiveFlags,
|
||||
track,
|
||||
TrackOpTypes,
|
||||
ShallowUnwrapRef,
|
||||
@@ -268,11 +267,6 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user