Skip to content

Commit

Permalink
fix: instance reuse bug in out-in transition (fix vuejs#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peach committed Mar 26, 2018
1 parent 9062438 commit 9c61047
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/history/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@ function poll (
key: string,
isValid: () => boolean
) {
if (instances[key]) {
if (
instances[key] &&
!instances[key]._isBeingDestroyed // do not reuse being destroyed instance
) {
cb(instances[key])
} else if (isValid()) {
setTimeout(() => {
Expand Down

0 comments on commit 9c61047

Please sign in to comment.