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

We should store HTML and Markdown in IndexedDB instead of localStorage #171

Open
vanpelt opened this issue Jun 26, 2024 · 0 comments
Open

Comments

@vanpelt
Copy link
Contributor

vanpelt commented Jun 26, 2024

In my local development environment I was getting quota exceeded errors because of the amount of data we're writing to local storage. frontend/src/state/atoms/history.ts contains logic to read and write the HTML and the Markdown for a HistoryItem to localStorage. We should rewrite that to use indexedDB (using jotai-minidb) in a way that maintains backwards compatibility and reads from localStorage falling back to indexedDB and moving all future writes to indexedDB.

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

No branches or pull requests

1 participant