title: NextJs - getServerSideProps never get invoked in custom app
body: <p>In my custom nextJs app <code>getServerSideProps</code> never get invoked in pages.
  Here are the content of my <code>pages/_app</code> directory:</p>
  
  <p>AuthWrapper:</p>
  
  <pre><code>const AuthWrapper = (props) =&gt; {
  
  //some auth logic
  
    return (
      &lt;LayoutWrapper {...props} /&gt;
    )
  }
  
  export default AuthWrapper
  </code></pre>
  
  <p>LayoutWrapper:</p>
  
  <pre><code>const LayoutWrapper = ({ Component, pageProps }) =&gt; {
    return (
      &lt;Layout style={{ minHeight: '100vh' }}&gt;
        &lt;Layout&gt;
          &lt;Header /&gt;
          &lt;Content &gt;
            &lt;Component {...pageProps} /&gt;
          &lt;/Content&gt;
          &lt;Footer style={{ textAlign: 'center' }}&gt;ABC, Inc.&lt;/Footer&gt;
        &lt;/Layout&gt;
      &lt;/Layout&gt;
    )
  }
  
  LayoutWrapper.propTypes = {
    Component: PropTypes.node,
    pageProps: PropTypes.object
  }
  
  export default LayoutWrapper
  </code></pre>
  
  <p>App: (index.js)</p>
  
  <pre><code>const App = (props) =&gt; {
    return (
      &lt;Auth0Provider
        //someProps
        &gt;
        &lt;Provider store={props.store}&gt;
          &lt;AuthWrapper {...props} /&gt;
        &lt;/Provider&gt;
      &lt;/Auth0Provider&gt;
    )
  }
  
  App.propTypes = {
    store: PropTypes.any
  }
  
  export default withRedux(initStore)(App)
  </code></pre>
  
  <p>Now in my custom page:
  <code>pages/myPage/index.js</code></p>
  
  <pre><code>const MyPage = ({ data }) =&gt; {
  
    return (
      &lt;&gt;
       {/* someHtml  */}
      &lt;/&gt;
    )
  }
  
  MyPage.propTypes = {
    data: PropTypes.string
  }
  
  export const getServerSideProps = async () =&gt; {
  
    console.log("inside getServerSideProps method")
    return { props: { data: "Hello World" } };
  }
  
  export default React.memo(MyPage)
  </code></pre>
  
  <p><code>getServerSideProps</code> never get invoked</p>
  
  <p>Making sure all imports are done correctly in all files</p>