State not saving correctly

Author: EthanSKCreated May 27, 2020Updated Feb 2, 2025

This issue pertains to the following package(s):

  • GraphQL Playground - Electron App
  • GraphQL Playground HTML
  • GraphQL Playground React
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

MacOS Catalina

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

"graphql-playground-react": "^1.7.22",

What is the expected behavior?

State gets saved per workspace, end of.

What is the actual behavior?

Say I have 2 playground pages in my website. One uses tabs, the other does not (because I want to provide the user with samples, but also allow them to save their state and work) If I reload the playground page that doesn't use tabs, it's fine, the state stays. However, if I now go to the page with tabs, then go back to the one without, everything is reset. I have tried with and without workspaces, same problem.

Source: graphql/graphql-playground