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

store history in the OPFS instead of localStorage to bypass 5 MB size limit #10619

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Dec 20, 2024

Closes #3239

localStorage has a 5 MB size limit, where as the Origin private file system supports at least 50 MB if you have enough hard-drive space.

We still store a single boolean in localStorage because we need to synchronously check if there are unsaved changes.

This is a draft because:

  • need to test that it falls back to localStorage in old browsers
  • need to handle migration from localStorage to OPFS, so that people's work isn't lost when this is released.

@tordans
Copy link
Collaborator

tordans commented Dec 20, 2024

JFYI there is some talk about migrating to IndexedDB on the Rapid side (search results).

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.

Switch to async storage (i.e. indexdb instead of localstorage)
2 participants