Skip to content

Commit

Permalink
chore: correct the comments in KeepAlive.ts (vuejs#11005)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored May 24, 2024
1 parent 07764fe commit 530d9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/components/KeepAlive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,11 @@ const KeepAliveImpl: ComponentOptions = {
rawVNode.ssContent = vnode
}
}
// #1513 it's possible for the returned vnode to be cloned due to attr
// #1511 it's possible for the returned vnode to be cloned due to attr
// fallthrough or scopeId, so the vnode here may not be the final vnode
// that is mounted. Instead of caching it directly, we store the pending
// key and cache `instance.subTree` (the normalized vnode) in
// beforeMount/beforeUpdate hooks.
// mounted/updated hooks.
pendingCacheKey = key

if (cachedVNode) {
Expand Down

0 comments on commit 530d9ec

Please sign in to comment.