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

quick fix for #586. A more durable solution is inbound #634

Merged
merged 1 commit into from Dec 2, 2016

Conversation

joshuafcole
Copy link
Contributor

When saving to the file system, localStorage is not updated. Unfortunately, since localStorage (and failing that, the fileCache) was used as the source of truth on the client, work would appear to be lost until a hard refresh, and would actually be lost if any edits were made prior to refreshing.

The fix here is fragile, and doesn't handle the case where the user has existing localStorage saves for the file or the case where the user edits in the editor, then the file system, then the editor again without a refresh in between, but it at least fixes the particular case in #586.

A more durable fix will arrive along with the client refactoring work.

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

Successfully merging this pull request may close these issues.

None yet

3 participants