diff --git a/docs/ArchitectureLearningJourney.md b/docs/ArchitectureLearningJourney.md index d98dadf1e..8eee0419b 100644 --- a/docs/ArchitectureLearningJourney.md +++ b/docs/ArchitectureLearningJourney.md @@ -72,9 +72,9 @@ Here's what's happening in each step. The easiest way to find the associated cod
ForYouViewModel calls GetUserNewsResourcesUseCase to obtain a stream of news resources with their bookmarked/saved state. No items will be emitted into this stream until both the user and news repositories emit an item. While waiting, the feed state is set to Loading.
+ ForYouViewModel calls UserNewsResourceRepository.observeAllForFollowedTopics to obtain a stream of news resources with their bookmarked/saved state. The repository implementation combines news resources from NewsRepository with user data from UserDataRepository. While waiting, the feed state is set to Loading.
NewsFeedUiState.Loading
+ ForYouViewModel.feedState
GetUserNewsResourcesUseCase combines the list of news resources with the user data to emit a list of UserNewsResources.
+ CompositeUserNewsResourceRepository combines the list of news resources with the user data to emit a list of UserNewsResources.
GetUserNewsResourcesUseCase.invoke
+ CompositeUserNewsResourceRepository.observeAll