File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export function createComponentInstanceForVnode (
126
126
}
127
127
128
128
function init ( vnode : VNodeWithData , hydrating : boolean ) {
129
- if ( ! vnode . child ) {
129
+ if ( ! vnode . child || vnode . child . _isDestroyed ) {
130
130
const child = vnode . child = createComponentInstanceForVnode ( vnode , activeInstance )
131
131
child . $mount ( hydrating ? vnode . elm : undefined , hydrating )
132
132
}
@@ -157,11 +157,10 @@ function insert (vnode: MountedComponentVNode) {
157
157
}
158
158
}
159
159
160
- function destroy ( vnode : any ) {
160
+ function destroy ( vnode : MountedComponentVNode ) {
161
161
if ( ! vnode . child . _isDestroyed ) {
162
162
if ( ! vnode . data . keepAlive ) {
163
163
vnode . child . $destroy ( )
164
- vnode . child = null
165
164
} else {
166
165
vnode . child . _inactive = true
167
166
callHook ( vnode . child , 'deactivated' )
You can’t perform that action at this time.
0 commit comments