next-with-apollo
next-with-apollo copied to clipboard
Apollo HOC for Next.js
```tsx function App({ Component, pageProps }: AppProps) { return ( ); } // next-with-apollo will run this and we want our pages' getInitialProps to run as well App.getInitialProps = async...
Currently, `getDataFromTree` works only during SSR due to this condition: https://github.com/lfades/next-with-apollo/blob/e0ddc5a628e33d4bac6e877dc2240e02e3a101a9/src/withApollo.tsx#L69 On the client, you'll see "Loading..." due to this, which is not bad but an alternative UX that we...
Hi, I may have missed something, but when I use `withApollo` with getDataFromTree as undefined, HTTP queries are still sent by the server. I try to totally disable Apollo queries...
Are there any typescript examples that use this library that you know of?
- [x] Can we have hook in place of HOC (withApollo) ? - [x] Are there any plans to upgrade this library to apollo/client 3.x?
I have a page component that is using `getInitialProps` to fetch data using Apollo via the `ctx.apolloClient`. ``` Page.getInitialProps = async (ctx: ApolloPageContext) => { const response = await ctx.apolloClient.query({...
Hi there, I have an issue on production env. When reloading page the cookie is being deleted, I think this issue would be related to the lib because of this...
Would like an update for the new version of next.js. Specifically including the new data-fetching methods and examples of use.
https://github.com/garmeeh/next-seo/issues/383 https://github.com/garmeeh/next-seo/issues/383#issuecomment-645457395 Just wanted to let you know, that we had a major outage in production yesterday due an upgrade from 4.3.0 to 5.0.1. All our meta data went missing...
Hi The `withApollo` HOC example works perfectly but I need to send `authtoken` in `headers`, which is coming from **react context** (I am using firebase authtoken, not localStorage or cookie)...