I working on a react application using react-router. I have a project page that has a url as follows.
If the link is directing to the same route with just a different param, it's not remounting, but instead receiving new props. So, you could use the
componentWillReceiveProps(newProps) function and look for
If you're trying to load data, I would reccomend fetching the data on before the router handles the match using static methods on the componet. Check out this example. React Router Mega Demo. That way, the component would load with the data and automatically update when the route params change without needing to rely on