Skip to content

Commit 9c61047

Browse files
author
Peach
committed
fix: instance reuse bug in out-in transition (fix vuejs#1874)
1 parent 9062438 commit 9c61047

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/history/base.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,10 @@ function poll (
318318
key: string,
319319
isValid: () => boolean
320320
) {
321-
if (instances[key]) {
321+
if (
322+
instances[key] &&
323+
!instances[key]._isBeingDestroyed // do not reuse being destroyed instance
324+
) {
322325
cb(instances[key])
323326
} else if (isValid()) {
324327
setTimeout(() => {

0 commit comments

Comments
 (0)