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
Orhan Tozan
03/23/2021, 7:51 AM
You probably need to combine that data for a use case in your app? If so, put it in a UseCase
v
voben
03/23/2021, 1:38 PM
You could always inject both repositories into your viewmodel and combine the data in there