What layer should combined data exist in? Say I ha...
# android-architecture
j
What layer should combined data exist in? Say I have a
UserRepository
and a
WorkoutRepository
, I want to combine data from both repositories into a single flow (user workout data). I then need to access that data across many screens in my app. Where should I put this logic?
o
You probably need to combine that data for a use case in your app? If so, put it in a UseCase
v
You could always inject both repositories into your viewmodel and combine the data in there