Skip to content

Commit

Permalink
fix(runtime-core): fix keep-alive tree-shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 7, 2020
1 parent 9e51297 commit 5b43764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/components/KeepAlive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b43764

Please sign in to comment.