title: How React Router persist state object?
body: <p>I need to know how react-router-dom persists state object, for example i have a route like this: '<a href="http://localhost:3000/somepath/123" rel="nofollow noreferrer">http://localhost:3000/somepath/123</a>', if i open this route on the new browser tab, state object is obviously undefined, if i redirected from somewhere to this route then state is an object from application state, this is completely normal... but the thing is, when i redirected from different route and i refresh the page several times the state is again an object, how react persist state even if i refresh the page?</p>
  
  <pre><code>&lt;Link
    to={{
      pathname: '/somepath/:someid',
      state: state.obj[someid]
    }}
  &gt;
   Link to somepath
  &lt;/Link&gt;
  </code></pre>