fix(runtime-core): fix keep-alive tree-shaking
This commit is contained in:
parent
9e51297702
commit
5b43764eac
@ -283,7 +283,7 @@ function registerKeepAliveHook(
|
||||
if (target) {
|
||||
let current = target.parent
|
||||
while (current && current.parent) {
|
||||
if (current.parent.type === KeepAliveImpl) {
|
||||
if (isKeepAlive(current.parent.vnode)) {
|
||||
injectToKeepAliveRoot(wrappedHook, type, target, current)
|
||||
}
|
||||
current = current.parent
|
||||
|
Loading…
Reference in New Issue
Block a user