title: How to access updated redux store state in getServerSideProps next js?
body: <p>I'm trying to get the latest redux state in getServerSideProps like this :</p>
  <pre><code>export const getServerSideProps = async (ctx) =&gt; {
      const state = store.getState();
      console.log(state.name);
  
      return { props: { login: false } };
  };
  </code></pre>
  <p>But the result I get is the initial name state .</p>
  <p>How can I get the latest persisted redux state in getServerSideProps next js ?</p>