DEV Community

Discussion on: How to reload a Next.js page's initial props without reloading the whole page

Collapse
 
w3bdesign profile image
w3bdesign

From the NextJS documentation:

If you're using Next.js 9.3 or newer, we recommend that you use getStaticProps or getServerSideProps instead of getInitialProps.

These new data fetching methods allow you to have a granular choice between static generation and server-side rendering.

Collapse
 
robbiegm profile image
RobbieGM

I've considered using getServerSideProps but then it wouldn't work client side. I use isomorphic fetching in getInitialProps, what is the new recommended way to do that?