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

Auto-save #37

Open
FossPrime opened this issue Jun 22, 2023 · 1 comment
Open

Auto-save #37

FossPrime opened this issue Jun 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@FossPrime
Copy link
Collaborator

FossPrime commented Jun 22, 2023

Just lost 10 minutes of notes... grrr

I don't love the way CloudFlow does it... StackBlitz does it better.
We should at least show a popup when there are unsaved changes.

@TheUltDev TheUltDev added the bug Something isn't working label Jun 24, 2023
@TheUltDev
Copy link
Contributor

Yeah currently we autosave to the webcontainer FS... which is destroyed completely on reload.

We should either mirror to OPFS/IndexedDB or at least a onbeforeunload hook like you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants