Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX committed Sep 4, 2019
1 parent 9f09afe commit 6c2f5c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/with-apollo/lib/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function withApollo (PageComponent, { ssr = true } = {}) {
// we can use it in `PageComponent.getInitialProp`.
const apolloClient = (ctx.apolloClient = initApolloClient())

// Run wrapped getInitialProps methods
let pageProps = {}
if (PageComponent.getInitialProps) {
pageProps = await PageComponent.getInitialProps(ctx)
Expand Down

0 comments on commit 6c2f5c4

Please sign in to comment.