triple_pattern
triple_pattern copied to clipboard
[Question] Problems with initialization of stores in a situation of multiple stores, when use HydratedMixin
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
hasInitiatedmakeRxNotifier<bool> - I noticed that in the
initStoremethod, thehasInitiatedflag 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
initStoremethod himself? - Can
initStoremake it returnFuture?