Skip to content

Feature/307 Clear local appdata on logout and fully reset discovery state#308

Open
chrislng wants to merge 5 commits into
devfrom
feature/307-fix-patrimoine-discoveries-modal-not-showing-if-the-user-logs-out-and-logs-back-it
Open

Feature/307 Clear local appdata on logout and fully reset discovery state#308
chrislng wants to merge 5 commits into
devfrom
feature/307-fix-patrimoine-discoveries-modal-not-showing-if-the-user-logs-out-and-logs-back-it

Conversation

@chrislng
Copy link
Copy Markdown
Contributor

@chrislng chrislng commented Jun 4, 2026

Clear corrupted/stale local DB files on logout and harden discovery UI and DB loading to prevent mount-time crashes and startup hangs caused by partial or invalid appdata/*.json. The logout flow now also clears in-memory DB caches, so stale discovery objects do not survive after logout/login.

This prevents the app from reusing stale in-memory state after logout/login and from loading corrupted local JSON produced by interrupted writes. It addresses the “patrimoine never loads” bug and reduces the chance of mount-time crashes in discovery modals.

Copy link
Copy Markdown

@JonathanT-T JonathanT-T left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heyy all seems good!

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.

Fix Patrimoine discoveries' modal not showing if the user logs out and logs back it

2 participants