Possible a noob question, but I am facing react router cycle problem here.
I've got
- React Router,
- ReactCSSTransitionGroup
I've got two versions of css animation, and would like to switch between them based on type of navigation. It's pretty simple with any kind of user interaction, except of browser back and forward buttons.
<ReactCSSTransitionGroup
transitionName={this.state.animation} transitionEnterTimeout={600} transitionLeaveTimeout={600}>
(...)
</ReactCSSTransitionGroup>
Is there any event triggered after clicking native browser history navigation and before react transition css transition starts? I've tried browserHistory.listen, but it fires after animation started.