Skip to content

Commit 8e0a1b1

Browse files
committed
fix(Transition): component should not be updated again after it have been unmounted (#6835)
1 parent 82e3f2d commit 8e0a1b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/components/BaseTransition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const BaseTransitionImpl: ComponentOptions = {
238238
// return placeholder node and queue update when leave finishes
239239
leavingHooks.afterLeave = () => {
240240
state.isLeaving = false
241-
instance.update()
241+
instance.update.active !== false && instance.update()
242242
}
243243
return emptyPlaceholder(child)
244244
} else if (mode === 'in-out' && innerChild.type !== Comment) {

0 commit comments

Comments
 (0)