From 8e0a1b183670e321f2969c61a0fd08f28c4e6ea9 Mon Sep 17 00:00:00 2001 From: Rairn <958414905@qq.com> Date: Sun, 9 Oct 2022 12:05:14 +0800 Subject: [PATCH] fix(Transition): component should not be updated again after it have been unmounted (#6835) --- packages/runtime-core/src/components/BaseTransition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/components/BaseTransition.ts b/packages/runtime-core/src/components/BaseTransition.ts index 5e5e216d34a..b36daa5cb50 100644 --- a/packages/runtime-core/src/components/BaseTransition.ts +++ b/packages/runtime-core/src/components/BaseTransition.ts @@ -238,7 +238,7 @@ const BaseTransitionImpl: ComponentOptions = { // return placeholder node and queue update when leave finishes leavingHooks.afterLeave = () => { state.isLeaving = false - instance.update() + instance.update.active !== false && instance.update() } return emptyPlaceholder(child) } else if (mode === 'in-out' && innerChild.type !== Comment) {