componentDidMount() is not getting called but only in a particular circumstance
问题 Just a heads up: this is a really strange problem. I'll do my best to clearly explain the issue. This is happening in my ReactJs app using React Router . I have some components that require some type of parameter coming from the URL. I also have components that do NOT depend on a parameter. If I go to components that do not require any parameters, there are no problems whatsoever. So, I go to my Home , then Account List , neither of which require any parameters, I can go back and forth as