Get ServerSideProps with page level HOC example. #12927
Unanswered
sambhav-gore
asked this question in
Help
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi,
I have built my solution around this example - https://github.com/zeit/next.js/tree/canary/examples/api-routes-apollo-server-and-client
that makes use of an HOC (withApollo) to add the apolloClient to the page.
now on the page, if I want to use getServerSideProps, it is not possible because the two cannot work together.
any suggestions? If I keep using getInitialProps on my pages, is it a problem?
Beta Was this translation helpful? Give feedback.
All reactions