title: Redux state doesn't persist on refresh
body: <p>I have a header component where the user details are fetched and then stored in redux.</p>
  
  <p>Now, in the user profile edit page, I am connecting the same reducer to fetch user details.</p>
  
  <pre><code>export default connect(state =&gt; ({
    ...state.user,
  }),{
    ...actions,
  })(MyProfile);
  </code></pre>
  
  <p>this.props.user contains the user object.</p>
  
  <p>The problem is that, when the page is refreshed, redux state doesn't persist and there is no user object in props.</p>
  
  <p>What is the correct way to solve this issue?</p>