Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usecases is not used? #69

Closed
lienminhquang opened this issue Aug 17, 2022 · 2 comments
Closed

Usecases is not used? #69

lienminhquang opened this issue Aug 17, 2022 · 2 comments
Labels
question Further information is requested

Comments

@lienminhquang
Copy link

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?

@hungps hungps added the question Further information is requested label Aug 18, 2022
@hungps
Copy link
Owner

hungps commented Aug 18, 2022

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

@lienminhquang
Copy link
Author

Thank you @hungps. In my projects, the role of BloC and Usecase is also the same.

@hungps hungps closed this as completed Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants