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 am rewriting an existing app to use ngrx. In the app there are components instantiated through route changes that load data in ngOnInit(). I replaced this with an action dispatch. Problem is that when using time travel in dev-tools with router-store the action get dispatched again through the actual init code of the component.
I thought of using an effect and hooking into router events but I'm not sure if this is the right way to handle this.
So my question is how does one handle this case?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I am rewriting an existing app to use ngrx. In the app there are components instantiated through route changes that load data in ngOnInit(). I replaced this with an action dispatch. Problem is that when using time travel in dev-tools with router-store the action get dispatched again through the actual init code of the component.
I thought of using an effect and hooking into router events but I'm not sure if this is the right way to handle this.
So my question is how does one handle this case?
Thanks!
The text was updated successfully, but these errors were encountered: