Replies: 2 comments 4 replies
-
I tried using getinitialprops inside my custom document and getServerSideProps in my page and it worked. |
Beta Was this translation helpful? Give feedback.
2 replies
-
converting getInitialProps to getServerSideProps is usually trivial, what issues are you seeing? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am actually improving on the code base of this nextjs project and am faced with the issue of a route protection HOC in the utils folder of the project that utilizes getInitialProps and with the deprecation of getInitialProps in Next 9.5 and introduction of getServerSideProps I have been trying to use getServerSideProps in my pages but I get this error that I can't use getInitialProps and getServerSideProps together. I also know getServerSideProps doesn't work outside of a page. I want to convert the getInitialProps so I can use getServerSideProps in my pages.
Beta Was this translation helpful? Give feedback.
All reactions