We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c3203b commit bdaf83aCopy full SHA for bdaf83a
packages/runtime-core/src/components/KeepAlive.ts
@@ -31,6 +31,7 @@ import {
31
invokeArrayFns
32
} from '@vue/shared'
33
import { watch } from '../apiWatch'
34
+import { hmrDirtyComponents } from '../hmr'
35
import {
36
RendererInternals,
37
queuePostRenderEffect,
@@ -280,7 +281,9 @@ const KeepAliveImpl: ComponentOptions = {
280
281
282
if (
283
(include && (!name || !matches(include, name))) ||
- (exclude && name && matches(exclude, name))
284
+ (exclude && name && matches(exclude, name)) ||
285
+ (__DEV__ && hmrDirtyComponents.has(comp))
286
+
287
) {
288
current = vnode
289
return rawVNode
0 commit comments