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

chore: make home page view model transient #489

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

huynhsontung
Copy link
Owner

@huynhsontung huynhsontung commented Nov 18, 2024

Media load speed is pretty fast and stable now. There is no reason to cache the MRU result in the home page view model. Keeping the home page view model as a singleton can sometimes encounter race conditions.

Since home page is no longer a singleton, we can't rely on the home page load to trigger library fetching. Move that logic to main page.

@huynhsontung huynhsontung marked this pull request as ready for review November 20, 2024 09:04
@huynhsontung huynhsontung merged commit af25154 into main Nov 21, 2024
3 of 4 checks passed
@huynhsontung huynhsontung deleted the transient-home-vm branch November 21, 2024 07:48
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