diff --git a/examples/with-apollo/lib/apollo.js b/examples/with-apollo/lib/apollo.js index a5424f46842514..6f8ffd0bd8e9f6 100644 --- a/examples/with-apollo/lib/apollo.js +++ b/examples/with-apollo/lib/apollo.js @@ -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)