Skip to content

GraphiQL headers are not reused in new GIQL tabΒ #1163

@Moumouls

Description

@Moumouls

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions