Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fixed] New props are flushed before any new transition #60

Merged
merged 1 commit into from
Jan 28, 2016

Conversation

jquense
Copy link
Member

@jquense jquense commented Jan 28, 2016

fixes #40.

if (this.props.unmountOnExit && this.state.status === EXITED) {
const status = this.state.status;

if (this.props.unmountOnExit && status === EXITED) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to return at the end of this and skip the bottom checks?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably safer yeah...I'm honestly not sure though

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a glance, it looks like you could at least hit performEnter twice, maybe.

jquense added a commit that referenced this pull request Jan 28, 2016
[fixed] New props are flushed before any new transition
@jquense jquense merged commit 472e0c4 into master Jan 28, 2016
@jquense jquense deleted the transition-props branch January 28, 2016 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transition can fail if new props affect animation state
2 participants