Next.js Fetch data in HOC from server in SSG
问题 I created new app with Next.js 9.3.1 . In old app with SSR. I can you getInitialProps function in HOC components (not in page), so I can fetch data from server in HOC component and from page. Like this https://gist.github.com/whoisryosuke/d034d3eaa0556e86349fb2634788a7a1 Example : export default function withLayout(ComposedComponent) { return class WithLayout extends Component { static async getInitialProps(ctx) { console.log('ctxlayout fire'); const { reduxStore, req } = ctx || {} const