You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw that you are using repositories in the bloc instead of usecases. (The usecases are not used anywhere in this project).
Can someone explain to me why?
The text was updated successfully, but these errors were encountered:
Hi @lienminhquang,
In this repository, I use BloC's actions/events as a replacement for the usecases layer because, in my opinion, they share the same role. If I use the normal setState instead of BloC, I will definitely add the usecases layer to my structure.
And of course, you can still add the usecases layer between BloC and repositories to share the usecases throughout your BloCs if that is what your project required
I saw that you are using repositories in the bloc instead of usecases. (The usecases are not used anywhere in this project).
Can someone explain to me why?
The text was updated successfully, but these errors were encountered: