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

Improve "reset cached package list" feature #1619

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

anttimaki
Copy link
Collaborator

No description provided.

SettingRow items update their value for on one second interval. While
reading the status from IndexedDB isn't a noticeable performance hit
(at least on my PC), it becomes an issue if checking the status throws
an error. In those cases TSMM's Sentry gets bombarded with an error
every second users stays on the settings screen.

Cache invalidation obviously makes the implementation more complex. The
cache can still show incorrect values if user manually deletes the
entries from IndexedDB via dev tools but that's acceptable.
Copy link
Collaborator

@VilppeRiskidev VilppeRiskidev left a comment

Choose a reason for hiding this comment

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

Code looks good and doesn't seem to break anything 👌

@anttimaki anttimaki merged commit 4c8f91c into develop Jan 20, 2025
5 checks passed
@anttimaki anttimaki deleted the cache-reset-improvements branch January 20, 2025 07:57
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.

2 participants