#why getInitialProps() for NextJS template instead of newer getServerSideProps()

3 messages · Page 1 of 1 (latest)

open palm
#

I’m new to this, but I thought getInitialProps() was deprecated back in V9 of NextJS and their advice is to always use getServerSideProps() instead. Something to do with client side transitions I think.

So how come Mantine docs still advise the old method? Do I just forget about getServerSideProps in my next projects then?

mild carbon
open palm
#

It’s not that i think I can do a better job. I’m just trying to understand the discrepancy - and if there is a specific reason Mantine needs to use getInitialProps as opposed to it just does because no-one has got around to updating the template.