Skip to content

Commit

Permalink
fix: Solve a bug in onCompleted for afterTransition when using parallel
Browse files Browse the repository at this point in the history
It could call onCompleted for afterTransition twice without this fix.
  • Loading branch information
dlmr committed Dec 6, 2017
1 parent df616ff commit 0be9739
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RedialContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export default class RedialContext extends Component {
)
.then(() => {
if (this.completed.afterTransition) {
this.completed.afterTransition = false;
this.props.onCompleted('afterTransition');
}
})
Expand Down

0 comments on commit 0be9739

Please sign in to comment.