rsnext/examples/with-apollo/components
Henrik Wenz cba5c05b36 Fix getInitialProps issue in with-apollo example (#8620)
* Fix getInitialProps in with-apollo example

The code before had two design flaws:

* When we skip WithApollo.getInitialProps we must hoist PageComponent.getInitialProps if it is present.
* We should expose the apolloClient to underlying PageComponent.getInitialProps contexts.

* Add abort check

* Add some comments

* Add client only example page

https://github.com/zeit/next.js/pull/8620#issuecomment-527870886

* Remove connectToDevTools setting in favor default config

7eaf4132cd/packages/apollo-client/src/ApolloClient.ts (L170-L173)

* Remove fetch check

This is done by https://www.npmjs.com/package/isomorphic-unfetch

* Remove apollo-boost

I am removing this package, because we never actually used it.
This is because we use the named export of apollo boost wich resolves to apollo-client.

This way we removed apollo-link-state, apollo-link-error

* Remove redirect code from the client
2019-09-04 11:46:39 -05:00
..
App.js Update with-apollo example with hooks (#8363) 2019-08-14 15:00:34 -05:00
ErrorMessage.js [with-apollo] Fix warning about missing _allPostsMeta and more (#3397) 2017-12-05 10:50:45 -08:00
Header.js Fix getInitialProps issue in with-apollo example (#8620) 2019-09-04 11:46:39 -05:00
InfoBox.js Fix getInitialProps issue in with-apollo example (#8620) 2019-09-04 11:46:39 -05:00
PostList.js Fix getInitialProps issue in with-apollo example (#8620) 2019-09-04 11:46:39 -05:00
PostUpvoter.js Update with-apollo example with hooks (#8363) 2019-08-14 15:00:34 -05:00
Submit.js Update with-apollo example with hooks (#8363) 2019-08-14 15:00:34 -05:00