Closed felikf closed 6 years ago
Also question posted here: https://stackoverflow.com/questions/47202946/angular-router-guard-and-router-navigation-effect-order
@vsavkin Victor any idea how to deal with this?
Here is a nice way to handle this issue: https://medium.com/@amcdnl/angular-routing-data-with-ngrx-effects-1cda1bd5e579
I have a question - this is not a code issue. I like the ngrx-router approach but there are some circumstances that I do not know how to solve:
(source: https://github.com/ngrx/platform/tree/master/docs/router-store)
How to combine
ROUTER_NAVIGATION
with a route guard :with for example
AuthGuard
which is executed afterROUTER_NAVIGATION
action but I want to guard the segment here or I need some data that are fetched asynchronously and are not yet in the store (request has been excuted, data have not arrived yet - a data guard - again executed afterROUTER_NAVIGATION
).