Skip to content

Commit

Permalink
Revert "Fix assignment of props in WithApollo.getInitialProps (vercel…
Browse files Browse the repository at this point in the history
…#11236)"

This reverts commit db57ad3.
  • Loading branch information
bgoerdt committed Mar 26, 2020
1 parent ee00813 commit b4cd51d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/with-apollo/lib/apollo.js
Expand Up @@ -137,9 +137,9 @@ export const withApollo = ({ ssr = false } = {}) => PageComponent => {
// we need to modify their props a little.
let props
if (inAppContext) {
props = { pageProps: { ...pageProps, apolloClient } }
} else {
props = { ...pageProps, apolloClient }
} else {
props = { pageProps: { ...pageProps, apolloClient } }
}

// Take the Next.js AppTree, determine which queries are needed to render,
Expand Down

0 comments on commit b4cd51d

Please sign in to comment.