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

Fix life cycle dependency appstore in api part 01 #960

Closed

Conversation

Eldar2021
Copy link
Member

@Eldar2021 Eldar2021 commented Jan 16, 2023

Our global AppStore and webApi are used everywhere as desired, also in AccountApi, AssetsApi, ChainApi and CodecApi. This PR #525 (Fix cyclic dependency between store <> api) is the first step in solving the problem. AppStore or webApi are no longer used in AccountApi, AssetsApi, ChainApi.
Yes some functions were moved into Api but this is temporarily. After merging this we will remove AppStore from EncointerApi and then from Api.

Copy link
Member

@clangenb clangenb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain a bit more your changes and the plans how you would like to continue after this step? Some changes seem not that intuitive to me. :)

We do agree that in the end we can say it is fine that the stores depend on api, but not the other way around?

lib/store/assets/assets.dart Outdated Show resolved Hide resolved
@Eldar2021
Copy link
Member Author

I apologize that it took me too long to reply to your comments.
My plan:

  1. remove AppStore from AccountApi, AssetsApi , ChainApi
  2. remove AppStore from EncointerApi
  3. remove AppStore from Api
  4. remove global var webApi
  5. ... I want to make our Stores separated from each other

Please let me know if I do bad code, I will fix it.

@Eldar2021 Eldar2021 closed this Mar 21, 2023
@Eldar2021 Eldar2021 deleted the fix-life-cycle-dependency-appstore-in-api-part-01 branch March 23, 2023 04:10
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

Successfully merging this pull request may close these issues.

2 participants