]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: correct the comments in KeepAlive.ts (#11005)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 24 May 2024 08:43:13 +0000 (16:43 +0800)
committerGitHub <noreply@github.com>
Fri, 24 May 2024 08:43:13 +0000 (16:43 +0800)
packages/runtime-core/src/components/KeepAlive.ts

index 37084d5f37af752160cb2ca8a6fc61267869505b..e059b892841371aa8c700b1a4c13ab82698f8bef 100644 (file)
@@ -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) {