From 530d9ec5f69a39246314183d942d37986c01dc46 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 24 May 2024 16:43:13 +0800 Subject: [PATCH] chore: correct the comments in KeepAlive.ts (#11005) --- packages/runtime-core/src/components/KeepAlive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 37084d5f37a..e059b892841 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) {