This is top 5 Clean Architecture usecase mistakes that we must avoid.
-
The UseCase should have only single responsibility and one public function. Link
-
The UseCase should contain only business logic. It should not contain any other logics such as presentation logic. Link
-
The UseCase lives in Domain layer, so it should only contain pure language packages. The UseCase should not contain any third-party or framework related packages. Link
-
Abstraction is necessary when we intend to implement multiple versions of it. Link
-
Deciding what error message to display is responsibility of Presentation layer. Link