title: Keep redux state on route change
body: <p>I have react-redux and react-router in my webapp and im trying to change the route while keeping the redux state. I tried all of these and they all removed the redux state:</p>
  <pre><code>props.history.push({ pathname: `/my-path`}); // did this using withRouter and useHistory
  &lt;Link to={'/my-path'} /&gt;cool link&lt;/Link&gt;
  </code></pre>
  <p>What am I doing wrong and how can I keep the state? (The reason I can't keep it in localStorage is because when the user closes that page, then the data should go away)</p>