title: React Router Dom Prevent Prompt When Params Change
body: <p>I am building a React Redux application and I am using <code>&lt;Prompt/&gt;</code> from <code>react-router-dom</code> to prevent a user from navigating away from a page when a specific icon is being rendered on the page.</p>
  
  <p>It works fine except for when the params in the <code>url</code> change and then it fires the <code>&lt;Prompt/&gt;</code> when I don't want it to fire because I haven't actually tried to navigate anywhere. My url looks like:</p>
  
  <p><code>http://localhost:8080/#/path/im/on?ids=1%2C24&amp;from=1512518400000&amp;searchRequest=e0007&amp;to=1512604799000</code></p>
  
  <p>When the <code>ids</code> in the <code>url</code> become successful, they are removed from the <code>url</code> but <code>&lt;Prompt/&gt;</code> is still fired.</p>
  
  <p>Is there any way I can prevent <code>&lt;Prompt/&gt;</code> from firing when the <code>url</code> <code>params</code> change and the first part of the <code>url</code> stays the same? i.e. <code>http://localhost:8080/#/path/im/on</code></p>