Skip to content

Commit 5278e06

Browse files
committed
wip: more private properties
1 parent 7e6a76e commit 5278e06

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/runtime-core/src/compat/instance.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,15 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) {
130130
return res
131131
},
132132

133-
// internal data access... (vuex uses this)
133+
// some private properties that are likely accessed...
134+
_self: i => i.proxy,
135+
_uid: i => i.uid,
134136
_data: i => i.data,
137+
_isMounted: i => i.isMounted,
138+
_isDestroyed: i => i.isUnmounted,
135139

136140
// v2 render helpers
137141
$createElement: () => compatH,
138-
_self: i => i.proxy,
139-
_uid: i => i.uid,
140142
_c: () => compatH,
141143
_o: () => legacyMarkOnce,
142144
_n: () => toNumber,

0 commit comments

Comments
 (0)