You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any reason to add the deferSpec=20220824 to the response header? Without it Apollo Client behaves properly and the devtools are able to preview the response data.
I linked to the PR from the Next.js integration where I detailed all of this. I also have a project https://github.com/jer-k/graphql-rsc-dashboard which has a local version of @as-integrations/next installed where I'm testing this. I can create a branch of this project that sets everything up to be pulled down if need be.
The text was updated successfully, but these errors were encountered:
jer-k
linked a pull request
Aug 7, 2024
that will
close
this issue
Issue Description
As I was working on improving the
@defer
support for Next.js in apollo-server-integrations/apollo-server-integration-next#204 I noticed that when I viewed the Preview pane in Chrome devtools, it was always blank.I thought it might be something going on with Next.js, but I believe it is an issue with the headers being set here https://github.com/apollographql/apollo-server/blob/main/packages/server/src/runHttpQuery.ts#L305.
In my Next.js app, I rewrote the headers to be
And the data appears in the Preview pane
.
Is there any reason to add the
deferSpec=20220824
to the response header? Without it Apollo Client behaves properly and the devtools are able to preview the response data.Link to Reproduction
apollo-server-integrations/apollo-server-integration-next#204
Reproduction Steps
I linked to the PR from the Next.js integration where I detailed all of this. I also have a project https://github.com/jer-k/graphql-rsc-dashboard which has a local version of
@as-integrations/next
installed where I'm testing this. I can create a branch of this project that sets everything up to be pulled down if need be.The text was updated successfully, but these errors were encountered: