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

Feature Request: Store Playground Content In Cookie Or Local Storage #288

Closed
fweth opened this issue May 17, 2022 · 3 comments
Closed

Feature Request: Store Playground Content In Cookie Or Local Storage #288

fweth opened this issue May 17, 2022 · 3 comments

Comments

@fweth
Copy link

fweth commented May 17, 2022

Hi, it would be great if the content of the playground is stored somewhere so I can go back to what I previously built, without manually saving it. Alternatively, it could be saved on the server similarly to JSFiddle, with a custom link, so that snippets can be more easily shared on the web. But the first variant should be much easier to implement.

@edemaine
Copy link
Collaborator

edemaine commented May 18, 2022

This is an issue for solid-playground; check out that repo for other related proposals.

In particular, instead of localstorage, I think this proposal would satisfy you (persisting content over reloads via the page URL). Feel free to leave a comment there!

Note also that, right now, if you click the "share" button, you'll get a custom link in your clipboard, which is used a lot for sharing! So that should satisfy your second request.

@fweth
Copy link
Author

fweth commented May 18, 2022

Thanks for the answer and sorry for posting to the wrong repository! Yes, custom link is great, I didn't discover that. I still think it would be cool to be able to close the tab for whatever reason (browser crashing, etc.) and not losing your work, dartpad.dev does a great job I think. Feel free to close the issue!

@edemaine
Copy link
Collaborator

Ah, fair point: localstorage is nice for remembering longer term like that. I notice that most other playgrounds do that, and it's kind of neat to see what I was working on last time. Maybe you want to open that specific suggestion on the playground repo? Meanwhile I'll close this one.

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

No branches or pull requests

2 participants