vsavkin / router-store

51 stars 6 forks source link

[Question] Is there a reason the (soon to be) ActivatedRouteSnapshot is not a part of the RouterNavigationPayload? #5

Closed mkennedy3000 closed 7 years ago

mkennedy3000 commented 7 years ago

One of my most common use cases is to pull of the params from the route on a ROUTER_NAVIGATION action.

Is there a good way to determine the ActivatedRoute that will be navigated to? I'm currently looping over all the firstChilds of the root on the RouterStateSnapshot.

I think it would be even better if the soon to be ActivatedRouteSnapshot (the childRoute) was already a part of the RouterNavigationPayload.

mkennedy3000 commented 7 years ago

Closing in favor of https://github.com/ngrx/platform/tree/master/modules/router-store