Skip to content

Commit

Permalink
Merge branch 'canary' into ssg/output
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Dec 12, 2019
2 parents e25710a + c4567a1 commit 0751f9f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions examples/with-graphql-hooks/lib/with-graphql-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default App => {
return class GraphQLHooks extends React.Component {
static displayName = 'GraphQLHooks(App)'
static async getInitialProps(ctx) {
const { Component, router } = ctx
const { AppTree } = ctx

let appProps = {}
if (App.getInitialProps) {
Expand All @@ -22,14 +22,7 @@ export default App => {
try {
// Run all GraphQL queries
graphQLState = await getInitialState({
App: (
<App
{...appProps}
Component={Component}
router={router}
graphQLClient={graphQLClient}
/>
),
App: <AppTree {...appProps} graphQLClient={graphQLClient} />,
client: graphQLClient,
})
} catch (error) {
Expand Down

0 comments on commit 0751f9f

Please sign in to comment.