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

Refactor cubit api implementation #36

Open
kabaluyot opened this issue Oct 30, 2024 · 0 comments
Open

Refactor cubit api implementation #36

kabaluyot opened this issue Oct 30, 2024 · 0 comments
Assignees

Comments

@kabaluyot
Copy link
Member

Atm cubit APIs are located per module with tight dependency on the module "states". This means when another module wants to call an API via cubit, it needs to import the other module dependencies or create new one (introduces duplication).

Proposal:

Create a Cubit API per Repository .. Like quote_api_cubit.dart for quote_repository.dart. The API suffix helps to quickly identify API-only cubits which are stateless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants