Do you want to request a feature or report a bug?
Feature
What is the current behavior?
There are no callbacks when the transition ends.
More detail
Sometimes, you want to do something once an animation completes. I think it makes sense for this lib to provide this callback.
This was originally raised on the React repo here: facebook/react#5914
And a PR was made here: facebook/react#5915
I've been using a copypasta'd version of ReactTransitionGroup that adds this feature for a long time now, and it works great. I think the general approach is good; it just wasn't merged in because Facebook didn't want to maintain this lib (see facebook/react#5914 (comment) )
For more on the justification, you can read the initial issue. But also you can imagine other cases where you might want to do some action after an animation completes.
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
There are no callbacks when the transition ends.
More detail
Sometimes, you want to do something once an animation completes. I think it makes sense for this lib to provide this callback.
This was originally raised on the React repo here: facebook/react#5914
And a PR was made here: facebook/react#5915
I've been using a copypasta'd version of ReactTransitionGroup that adds this feature for a long time now, and it works great. I think the general approach is good; it just wasn't merged in because Facebook didn't want to maintain this lib (see facebook/react#5914 (comment) )
For more on the justification, you can read the initial issue. But also you can imagine other cases where you might want to do some action after an animation completes.