DEV Community

Discussion on: Exploring Undocumented getInitialProps Properties on Next.js

Collapse
 
wsh4and profile image
Eko Andri Subarnanto

I never use getInitialProps or any built in initial props to fetch data, and use custom-hooks instead that work both on Next (SSR) and CRA(CSR). Am I missing something?

I never like the idea of "get this props/data" before your page loaded when doing SSR and have to explicitly call that on every single page. It defeats the purpose of reusable function.