You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per #220, this tool would be A LOT more valuable with a way ... any way ... to persist effort. A quick check of the code found that the entire client state is kept in a Redux store:
Added two new options to the right of "NEW PROJECT" and "EXPORT CODE" in the upper-left:
IMPORT STATE
EXPORT STATE
onClick "EXPORT STATE" would serialize the current store (possibly filtering out state that doesn't need to persist), and display a modal with that state in JSON form
onClick "IMPORT STATE" would prompt the user to paste in state JSON, and then would (essentially) reload the app and reinitialize the Redux store with that state (deserialized)
Obviously 1 and 2 should be pretty trivial, while 3 will require the most effort.
But before anyone does all that ... would you accept a PR that does the above?
The text was updated successfully, but these errors were encountered:
@machineghost I am not familiar with Redux etc. Can you share your code to import and export state so I could at least modify local project and use this feature?
As per #220, this tool would be A LOT more valuable with a way ... any way ... to persist effort. A quick check of the code found that the entire client state is kept in a Redux store:
https://github.com/GraphQL-Designer/graphqldesigner.com/blob/master/client/store.js
If someone were to create a PR that:
Obviously 1 and 2 should be pretty trivial, while 3 will require the most effort.
But before anyone does all that ... would you accept a PR that does the above?
The text was updated successfully, but these errors were encountered: