@@ -51,8 +51,8 @@ export class ComponentWalker {
51
51
// instance.uid is not reliable in devtools as there
52
52
// may be 2 roots with same uid which causes unexpected
53
53
// behaviour
54
- const id = instance . __VUE_DEVTOOLS_UID__ != null ? instance . __VUE_DEVTOOLS_UID__ : getUniqueComponentId ( instance )
55
- instance . __VUE_DEVTOOLS_UID__ = id
54
+ const id = instance . __VUE_DEVTOOLS_NEXT_UID__ != null ? instance . __VUE_DEVTOOLS_NEXT_UID__ : getUniqueComponentId ( instance )
55
+ instance . __VUE_DEVTOOLS_NEXT_UID__ = id
56
56
57
57
// Dedupe
58
58
if ( this . captureIds . has ( id ) )
@@ -119,9 +119,9 @@ export class ComponentWalker {
119
119
// keep-alive
120
120
if ( this . isKeepAlive ( instance ) ) {
121
121
const cachedComponents = this . getKeepAliveCachedInstances ( instance )
122
- const childrenIds = children . map ( child => child . __VUE_DEVTOOLS_UID__ )
122
+ const childrenIds = children . map ( child => child . __VUE_DEVTOOLS_NEXT_UID__ )
123
123
for ( const cachedChild of cachedComponents ) {
124
- if ( ! childrenIds . includes ( cachedChild . __VUE_DEVTOOLS_UID__ ) ) {
124
+ if ( ! childrenIds . includes ( cachedChild . __VUE_DEVTOOLS_NEXT_UID__ ) ) {
125
125
const node = await this . capture ( { ...cachedChild , isDeactivated : true } , depth + 1 )
126
126
if ( node )
127
127
treeNode . children . push ( node )
@@ -241,8 +241,8 @@ export class ComponentWalker {
241
241
*/
242
242
private mark ( instance : VueAppInstance , force = false ) {
243
243
const instanceMap = getAppRecord ( instance ) ! . instanceMap
244
- if ( force || ! instanceMap . has ( instance . __VUE_DEVTOOLS_UID__ ) ) {
245
- instanceMap . set ( instance . __VUE_DEVTOOLS_UID__ , instance )
244
+ if ( force || ! instanceMap . has ( instance . __VUE_DEVTOOLS_NEXT_UID__ ) ) {
245
+ instanceMap . set ( instance . __VUE_DEVTOOLS_NEXT_UID__ , instance )
246
246
247
247
// force sync appRecord instanceMap
248
248
devtoolsAppRecords . active . instanceMap = instanceMap
0 commit comments