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

Disappear Transition #30

Closed
mateeyow opened this issue Apr 11, 2017 · 3 comments
Closed

Disappear Transition #30

mateeyow opened this issue Apr 11, 2017 · 3 comments

Comments

@mateeyow
Copy link

Do you want to request a feature or report a bug?
FEATURE

What is the expected behavior?
An animation/transition that activates when a component disappears or unmounts

@jquense
Copy link
Collaborator

jquense commented Apr 26, 2017

Hi, thanks for the suggestion. Unfortunately this isn't possible simply. Components can't, themselves animate on unmount because they cannot cancel or unmount asynchronously. You'd have to wrap the group in its own transition component. The proposed new API should make this easier tho! Please weigh in on the PR #24

@jquense jquense closed this as completed Apr 26, 2017
@BowserKingKoopa
Copy link

This is my biggest pain point with React.

@jquense
Copy link
Collaborator

jquense commented Apr 26, 2017

I don't disagree! The generic Transition component proposed in #24 though should at least give a simple straightforward way to deal with this. It's a state machine that manages a component mount state over time.

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

No branches or pull requests

3 participants