Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphiQL headers are not reused in new GIQL tab #1163

Open
4 tasks
Tracked by #1358
Moumouls opened this issue May 4, 2022 · 0 comments · Fixed by graphql/graphiql#2886
Open
4 tasks
Tracked by #1358

GraphiQL headers are not reused in new GIQL tab #1163

Moumouls opened this issue May 4, 2022 · 0 comments · Fixed by graphql/graphiql#2886
Assignees
Labels
Milestone

Comments

@Moumouls
Copy link

Moumouls commented May 4, 2022

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a minimal reproduction available on CodeSandbox using the issue template.
    • Please install the latest @graphql-yoga/* packages that you are using.
    • Please makee sure the reproduction is as small as possible.
    • _Please make sure the relevant code parts that cause the issue are annotated with comments
  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug

When your setup the headers option in graphIQL like

          renderGraphiQL({
            endpoint: this.config.graphQLPath,
            subscriptionEndpoint: this.config.subscriptionsPath,
            headers: JSON.stringify({
              'X-Parse-Application-Id': this.parseServer.config.appId,
              'X-Parse-Master-Key': this.parseServer.config.masterKey,
            }),
          })

To Reproduce
Steps to reproduce the behavior:

setup the headers options, run GIQL, open a new GIQL tab. The headers is not recycled.

Expected behavior

To recycle the headers

Environment:

  • OS:
  • NodeJS:
  • @graphql-yoga/* version(s):

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment