We got this awesome exemple of changing page animation, but i want to manage the global page change animation and state change animation in a form with 4 states.
There's the exemple. https://github.com/rackt/react-router/tree/master/examples/animations
I'm trying to block the update if the children props doesn't have the same amount of routes props in the nextProps argument. It doesn't work.
Can someone help me please?
Thank you
shouldComponentUpdate(nextProps) {
console.log(this.props.children.props.routes, nextProps.children.props.routes);
if(this.props.children.props.routes.length === nextProps.children.props.routes.length){
return true;
}
return false;
}
I got my main url "/" and when i change to "/registration", it must do a transition. When i'm on "/registration" and i go to "/registration/contact-infos" it must do another transition between the registration form states.