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

refactor: optimize loading in SessionDetailViewModel #347

Merged
merged 2 commits into from
Mar 6, 2025

Conversation

cbeyls
Copy link
Collaborator

@cbeyls cbeyls commented Mar 6, 2025

  • Load all data from a single main Flow instead of collecting the same source Flow multiple times to load the different parts of the session
  • Cache the results in a StateFlow
  • Query SpeakersRepository once per session to load all speakers at once.

@cbeyls cbeyls self-assigned this Mar 6, 2025
@cbeyls cbeyls merged commit 2ddf3ca into main Mar 6, 2025
1 check passed
@cbeyls cbeyls deleted the refactor/optimize_session_detail_viewmodel_loading branch March 6, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant