Jan Maloušek
Nov 4 · 1 min read

Another awesome article! Thanks a lot.

I have a question, can one usecase call directly another usecase, or is it a bad idea?

For example I need to fetch user object and network state to decide action.

One usecase will be for fetching user, second one will be for finding out connection state and last one will be to combine result of the first two usecases into action.

So should the last usecase call the first two usecases?

Or should it be all in one usecase? but then it would be a problem, because i need to get user in another part of app, so one method in userRepo would be used by multiple usecases…

    Jan Maloušek

    Written by