It's not possible to lazy-load a page module using Next.js' Dynamic Import feature (which extends the React.lazy function), if the module relies on custom data provided by its getCustomInitialProps function. If the module doesn't have a getCustomInitialProps function, importing it dynamically works as expected.
It's not possible to lazy-load a page module using Next.js' Dynamic Import feature (which extends the React.lazy function), if the module relies on custom data provided by its getCustomInitialProps function. If the module doesn't have a getCustomInitialProps function, importing it dynamically works as expected.