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

feat: improve IndexedDB persistence handling #139

Closed
wants to merge 9 commits into from

Conversation

vgcman16
Copy link

This PR improves the IndexedDB persistence handling in the app, making it more reliable and robust. Key improvements include better browser environment detection, database verification, improved error handling, and proper cleanup processes. While the persistence works best in Safari, Chrome-specific issues are handled gracefully.

Changes:

Add better browser environment detection
Add database verification and testing
Improve error handling and logging
Add proper cleanup process
Make persistence work reliably in Safari
Handle Chrome-specific issues gracefully
Add better state tracking and management
Note: For the best experience with persistence features, use Safari browser.

This PR improves the IndexedDB persistence handling in the app, making it more reliable and robust. Key improvements include better browser environment detection, database verification, improved error handling, and proper cleanup processes. While the persistence works best in Safari, Chrome-specific issues are handled gracefully.

Changes:
- Add better browser environment detection
- Add database verification and testing
- Improve error handling and logging
- Add proper cleanup process
- Make persistence work reliably in Safari
- Handle Chrome-specific issues gracefully
- Add better state tracking and management

Note: For the best experience with persistence features, use Safari browser.
The orange indicator light wasn't being cleared after saving a file because the file wasn't being removed from the modifiedFiles set. This change ensures that when a file is saved:
1. It's removed from unsavedFiles set
2. It's removed from modifiedFiles set

This fixes the issue where the orange indicator light would stay on even after saving.
@vgcman16 vgcman16 closed this by deleting the head repository Nov 18, 2024
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.

1 participant