Replies: 2 comments 7 replies
-
@arenshaee can you share a specific example in this codebase and any relevant official guidance around this subject? I suspect we do not inject any dispatchers in the usecases because they don't bring any value. |
Beta Was this translation helpful? Give feedback.
-
If you need to use another type of dispatcher over repositories, you can inject it into an usecase. |
Beta Was this translation helpful? Give feedback.
-
As I
dug into the official guidelinesasked around and searched the web, everyone seemed to agree that dispatchers are better to inject into use cases. but here is not the case. I'd appreciate it if someone could provide the reasoning behind this decision alongside some information on why the other way is not optimal.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions