graphql-playground icon indicating copy to clipboard operation
graphql-playground copied to clipboard

State not saving correctly

Open EthanSK opened this issue 5 years ago • 3 comments

This issue pertains to the following package(s):

  • [ ] GraphQL Playground - Electron App
  • [ ] GraphQL Playground HTML
  • [x] 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.

EthanSK avatar May 27 '20 12:05 EthanSK

Any chance for this getting looked at? Just ran into this issue myself, this ticket was helpful to discover I had the same issue - playground open in two tabs, the second one not updating state (probably the first one overwriting any changes?)

axos88 avatar Jan 30 '25 12:01 axos88

i have awaited patiently your reply. i have not eaten, slept, gone to the toilet, or gone outside while I eagerly stared at this issue page since asking the question

EthanSK avatar Feb 01 '25 12:02 EthanSK

Wish i had your patience and determination.

axos88 avatar Feb 02 '25 20:02 axos88