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'm trying to do some initialization after the module is loaded, but 'Actions' observable does not emit any '@ngrx/store/update-reducers'. Looks like a bug to me... If it is not then I'd like to know what is the best place to put such initialization logic in a lazy module, so its run before any other effect.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
The @ngrx/store/update-reducers is only being send to redux devtools.
There is currently an issue open, #683, to dispatch an action when the action is added.
I think the only way to handle this for now, would be to dispatch an INIT action yourself.
Well, in fact, it's dispatched to my reducer, so it is not only sent to devtools.
I think what happens here is that Effect's observables are subscribed to only after this event was already dispatched.
Anyways, it look like you are right and i have to dispatch something on my own.
Thanks a lot for your quick response!
Oops, you're right I was too quick to jump to conclusions.
When the module is loaded it will dispatch the update-reducers action, before the effect is loaded.
I'm trying to do some initialization after the module is loaded, but 'Actions' observable does not emit any '@ngrx/store/update-reducers'. Looks like a bug to me... If it is not then I'd like to know what is the best place to put such initialization logic in a lazy module, so its run before any other effect.
Thanks in advance.
The text was updated successfully, but these errors were encountered: