title: componentDidMount not called on HashRouter Route change
body: <p>First of all: <strong>I know that this question has already been asked here and that there is also already a solution. Please read the whole post before marking this as a duplicate</strong></p>
  
  <p>I am using the HashRouter from react-router-dom and I have this simple route:</p>
  
  <pre><code>&lt;Route path='/folder/:folderId' component={FileArea} /&gt;
  </code></pre>
  
  <p>The routing works fine but unfortunately my <code>componentDidMount</code> function is not being called after a route change. This is crutial for my application to work as I have to make an API Call every time the route changes to retrieve the corresponding data (according to the folderId url parameter).</p>
  
  <p>I found a solution in the internet using <code>componentWillReceiveProps</code> and this would work fine for me but apparently this function will no longer work in future react versions: <a href="https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops" rel="nofollow noreferrer">React Documentation</a></p>
  
  <p>I also know that I could theoretically use <code>static getDerivedStateFromProps(nextProps, prevState)</code> but this function is called way to often and it would be rediculous to make an api call each time.</p>
  
  <p>Is there an alternative for <code>componentWillReceiveProps</code> or some way to invoke <code>componentDidMount</code>?</p>