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] Graphiql editor information is scoped to the origin #3589

Open
sahil-nyt opened this issue Apr 22, 2024 · 0 comments
Open

[graphiql] Graphiql editor information is scoped to the origin #3589

sahil-nyt opened this issue Apr 22, 2024 · 0 comments

Comments

@sahil-nyt
Copy link

sahil-nyt commented Apr 22, 2024

We are running a server that has two GraphQL/GraphiQL endpoints. Because GraphiQL seems to be saving UI state in local storage, the storage is namespaced to the origin level, and the UI persists queries between both endpoints. So if I am writing a query on a GraphiQL tab connected to localhost:8080/server1 and I refresh my tab connected to localhost:8080/server2, I see the same query.

This makes it hard to query these related endpoints that expose different graphs :/ Is there a way we can namespace local storage so that the state is separate per path, instead of per origin? Or some other approach?

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

No branches or pull requests

1 participant