Replies: 2 comments
-
I am also facing the same issue. Props for the page is not getting passing when using the getInitialProps in my _app.tsx file. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this will help. Not sure that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have my simple application that use to work with getInitialProps, following the recommendations on the doc page, i changed it getStaticProps and getStaticPaths. The problem now is, while bot the two functions get executed, the new props returned by getServerSideProps, getStaticProps doesn't get passed unto my page/component. I have a _app.js with little implementation of getInitialProps like below
The above use to work for me and the new props from getInitialProps get passed. However, it doesn't work with getStaticProps and getServerSideProps, Please how do i enhance my implementation to allow passing of such props ? Any hep will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions