We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, i have problem like below
_app.js
import { getDataFromTree } from "@apollo/client/react/ssr"; function MyApp({ Component, pageProps }) { return <Component {...pageProps} />; } export default withApollo(MyApp, { getDataFromTree });
hoc/withApollo.js
export default withApollo( ({ initialState, headers }) => { return new ApolloClient({ headers, credentials: "same-origin", uri: `${API_URI}/graphql`, cache: new InMemoryCache().restore(initialState || {}), }); }, { render: ({ Page, props }) => { return ( <ApolloProvider client={props.apollo}> <Page {...props} /> </ApolloProvider> ); }, } );
The text was updated successfully, but these errors were encountered:
@eleviven hi, did you found a solution?
UPD: in my case it was because httpS://localhost/api/graphql link. When i changed to http - problem was solved/
Sorry, something went wrong.
+1 - is there an ETA on fix for this?
@ziimakc I tried this workaround but no luck
No branches or pull requests
Hi, i have problem like below
_app.js
hoc/withApollo.js
The text was updated successfully, but these errors were encountered: