title: Gatsby: Clicking In-Route Anchor Element Leads to Re-Render
body: <p>I set up a minimal Gatsby page to test when Gatsby re-renders, and I found out that just clicking a regular in-route (hash) anchor link, causes a re-render.</p>
  
  <p>Why is that? Is there any way to prevent it?</p>
  
  <p>Here is an example page:</p>
  
  <pre><code>const SomePage = props =&gt; {
    console.log('RE-RENDERING PAGE');
    return (
      &lt;&gt;
        &lt;a href="#foo"&gt;Link that should not fire re-render&lt;/a&gt;;
      &lt;/&gt;
    );
  };
  </code></pre>