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 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):
Is it possible to somehow wait for a store to be initialized before initializing another one? As an option hasInitiated make RxNotifier<bool>
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?
Is it possible to disable the automatic recovery of the store and allow the developer to call the initStore method himself?
Can initStore make it return Future ?
The text was updated successfully, but these errors were encountered:
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
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
):hasInitiated
makeRxNotifier<bool>
initStore
method, thehasInitiated
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?initStore
method himself?initStore
make it returnFuture
?The text was updated successfully, but these errors were encountered: