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

[Question] Problems with initialization of stores in a situation of multiple stores, when use HydratedMixin #82

Open
skiryuk opened this issue Mar 10, 2022 · 0 comments
Labels
question Further information is requested

Comments

@skiryuk
Copy link

skiryuk commented Mar 10, 2022

I ran into a situation: let's say one service depends on a number of stores, or one store depends on another (stores with mixin HydratedMixin).

In this regard, questions (I watch HydratedMixin):

  1. Is it possible to somehow wait for a store to be initialized before initializing another one? As an option hasInitiated make RxNotifier<bool>
  2. I noticed that in the initStore method, the hasInitiated flag is set only when there is a state in the store (not equal to null). Maybe it would be more correct to take the line _flags.hasInitiated = true; out of the condition?
  3. Is it possible to disable the automatic recovery of the store and allow the developer to call the initStore method himself?
  4. Can initStore make it return Future ?
@skiryuk skiryuk changed the title Problems with initialization of stores in a situation of multiple stores, when use HydratedMixin [Question] Problems with initialization of stores in a situation of multiple stores, when use HydratedMixin Mar 10, 2022
@tauamendonca tauamendonca added the question Further information is requested label Dec 30, 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