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
Andre Theilacker
11/01/2022, 10:39 PM
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
Shiv
01/03/2023, 3:01 PM
@Abdulaziz Mohammed How about combining both the response models and transform in repository.
Use combine of flows.