Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with-apollo example does not attach apolloClient to getServerSideProps context #11694

Closed
dhazeley opened this issue Apr 5, 2020 · 2 comments
Closed

Comments

@dhazeley
Copy link

dhazeley commented Apr 5, 2020

Description

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.

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.

@timneutkens
Copy link
Member

timneutkens commented Apr 6, 2020

Example updates for the new data fetching methods are tracked in #11014

@dhazeley 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
@balazsorban44
Copy link
Member

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 vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants