Skip to content

Local storage sometimes outdated without hard refresh. Should re-fetch all data if localStorage timestamp is older than server copy. #846

@yuchant

Description

@yuchant

🌈 Feature

I have been using codesandbox for only 30 hours, and have lost my changes numerous times due to completely accidental backwards swipes. I've rewritten quite a lot of code due to accidental back navigation.

This last instance felt like at least 3+ minutes of data lost.

Codesandbox should save unsaved history into local storage as much as possible. Not a true "save" but a state save.

If there are performance considerations on too many saves, it could be hooked into things like file selection, new tab selection, a long poll, or on the onbeforeunload event.

Thank you for your awesome work!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions