You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So in your custom app and document examples, the getInitialProps method is used. But the two new methods (getStaticProps and getServerSideProps) is preferred instead of getIntialProps when using next js version 9.3 or newer. So what is the "new right" way to implement server-side data fetching in the custom document and app component using next js 9.3?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So in your custom app and document examples, the getInitialProps method is used. But the two new methods (getStaticProps and getServerSideProps) is preferred instead of getIntialProps when using next js version 9.3 or newer. So what is the "new right" way to implement server-side data fetching in the custom document and app component using next js 9.3?
Beta Was this translation helpful? Give feedback.
All reactions