If I have a Fragment that displays details for a p...
# android-architecture
a
If I have a Fragment that displays details for a particular meal, and I have two requests, one for details and one for restaurants that sell this meal, is it correct to create a usecase for each request ?
👌 1
a
I believe it depends on what behavior you want, but, for example, if you want to display both informations at once, and want to combine both responses in one model, I wouldn't say handling both requests in a single use case is a bad idea
s
@Abdulaziz Mohammed How about combining both the response models and transform in repository. Use combine of flows.