From: Haoqun Jiang Date: Fri, 24 May 2024 08:43:13 +0000 (+0800) Subject: chore: correct the comments in KeepAlive.ts (#11005) X-Git-Tag: v3.4.28~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=530d9ec5f69a39246314183d942d37986c01dc46;p=thirdparty%2Fvuejs%2Fcore.git chore: correct the comments in KeepAlive.ts (#11005) --- diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 37084d5f37..e059b89284 100644 --- a/packages/runtime-core/src/components/KeepAlive.ts +++ b/packages/runtime-core/src/components/KeepAlive.ts @@ -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) {