+15
-0
lines changedFilter options
+15
-0
lines changed Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ import {
34
34
} from '../renderer'
35
35
import { setTransitionHooks } from './BaseTransition'
36
36
import { ComponentRenderContext } from '../componentPublicInstance'
37
+
import { devtoolsComponentAdded } from '../devtools'
37
38
38
39
type MatchPattern = string | RegExp | string[] | RegExp[]
39
40
@@ -95,6 +96,10 @@ const KeepAliveImpl = {
95
96
const keys: Keys = new Set()
96
97
let current: VNode | null = null
97
98
99
+
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
100
+
;(instance as any).__v_cache = cache
101
+
}
102
+
98
103
const parentSuspense = instance.suspense
99
104
100
105
const {
@@ -132,6 +137,11 @@ const KeepAliveImpl = {
132
137
invokeVNodeHook(vnodeHook, instance.parent, vnode)
133
138
}
134
139
}, parentSuspense)
140
+
141
+
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
142
+
// Update components tree
143
+
devtoolsComponentAdded(instance)
144
+
}
135
145
}
136
146
137
147
sharedContext.deactivate = (vnode: VNode) => {
@@ -147,6 +157,11 @@ const KeepAliveImpl = {
147
157
}
148
158
instance.isDeactivated = true
149
159
}, parentSuspense)
160
+
161
+
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
162
+
// Update components tree
163
+
devtoolsComponentAdded(instance)
164
+
}
150
165
}
151
166
152
167
function unmount(vnode: VNode) {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4