From 4bf862610f8f2a89a96c0933f33266eb5f9fbead Mon Sep 17 00:00:00 2001 From: yinhangfeng Date: Thu, 17 Apr 2025 21:32:08 +0800 Subject: [PATCH] fix(runtime-core): fix the issue of passing incorrect parentComponent to patch when KeepAlive is activated --- packages/runtime-core/src/components/KeepAlive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index f2b7bdf9738..9c35c4bdd01 100644 --- a/packages/runtime-core/src/components/KeepAlive.ts +++ b/packages/runtime-core/src/components/KeepAlive.ts @@ -143,7 +143,7 @@ const KeepAliveImpl: ComponentOptions = { vnode, container, anchor, - instance, + instance.parent, parentSuspense, namespace, vnode.slotScopeIds,