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

Reload clears editor #2817

Closed
lrhn opened this issue Feb 9, 2024 · 1 comment
Closed

Reload clears editor #2817

lrhn opened this issue Feb 9, 2024 · 1 comment

Comments

@lrhn
Copy link
Member

lrhn commented Feb 9, 2024

When editing in the new DartPad, if you press ctrl R (which I did at least once hoping it would run the program),
it reloads the page.
This clears the editor and loses the content.
There is no undo, no "back" navigation, generally no way to restore the content, it's just gone.

The old DartPad keeps the content when you reload (and when you open a new DartPad tab).
That's a better, and safer, user experience.

Steps to reproduce problem

Write code. Press Ctrl+R.

Additional info

Browser

Google Chrome
Version 121.0.6167.161 (Official Build) (64-bit)

@lrhn lrhn changed the title New Dartpad: Reload clears editor Reload clears editor Feb 9, 2024
@parlough
Copy link
Member

parlough commented Feb 22, 2024

Support for saving the most recent edit wasn't transitioned over. I think it's valuable though, especially considering reloading or other issues or mistakes.

Thanks for noting this and how fixing this would result in a safer user experience!

I'll close this in favor of #2871 which tracks implementing support for some form of automatic-snippet saving. Thanks!

@parlough parlough closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
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

2 participants