Next.js: SSR in next v9 w/ graphql-hooks does not work

Created on 2 Sep 2019  路  8Comments  路  Source: vercel/next.js

BUG REPORT

I tried downloading and running the with-graphql-hooks example. It works well with javascript enabled, but does not work with SSR.

Logging { data } to console returns _undefined_.

It is probably related to this:

8538

To reproduce:

yarn create next-app --example with-graphql-hooks with-graphql-hooks-app
cd with-graphql-hooks-app
yarn dev
good first issue example

Most helpful comment

I've run into this problem myself, as well. As far as I can see any combination of Apollo hooks and next.js results in no SSR content.

Just curious what the status is on this issue?

All 8 comments

Hi @timneutkens
I'd like to take this on please.

@Boosmith sure!

Related to #8830

Hey guys, anyone knowing the reason here? I'm willing to contribute, but I don't know where to get started. Do you know the reason for this behavior?

I've run into this problem myself, as well. As far as I can see any combination of Apollo hooks and next.js results in no SSR content.

Just curious what the status is on this issue?

Is this issue still unsolved?

@Boosmith / @timneutkens any update on this? maybe even some guidance on where the issue might be?

Any update?

I've tried updating to the latest packages,

"graphql-hooks": "^4.4.4", "graphql-hooks-memcache": "^1.3.2", "graphql-hooks-ssr": "^1.1.5",

but still the same. I like that this is lighter than apollo, so I was hoping to use.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

acanimal picture acanimal  路  74Comments

poyiding picture poyiding  路  73Comments

matthewmueller picture matthewmueller  路  102Comments

Timer picture Timer  路  90Comments

ematipico picture ematipico  路  66Comments