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
Going off of the with-apollo example:
When you add a getServerSideProps function to a Next Page wrapped with the withApollo HOC (ssr must be set to false or else you get an error with a conflict between getInitialProps and getServerSideProps), the context does not have apolloClient inside of it.
dhazeley
changed the title
with-apollo example does attach apolloClient to getServerSideProps context
with-apollo example does not attach apolloClient to getServerSideProps context
Apr 7, 2020
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 30, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Going off of the with-apollo example:
When you add a
getServerSideProps
function to a Next Page wrapped with thewithApollo
HOC (ssr must be set to false or else you get an error with a conflict betweengetInitialProps
andgetServerSideProps
), the context does not haveapolloClient
inside of it.To Reproduce
I created a repo with reproduction here:
https://github.com/dhazeley/with-apollo-server-props/blob/master/pages/client-only.js#L30
Any insights would be appreciated.
The text was updated successfully, but these errors were encountered: