[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
If the store is asynchronously modified by route guard, during the transition StoreRouterConnectingModule is executing navigateByUrl on router, because the url set in state by StoreRouterConnectingModule (taken from NavigationStart event) is different than router.url value (which contains url from before of transition). This cause cancellation of previous navigation, and next try to execute the navigation (for same url), and again and again, until the guard will not return true synchronously.
Please look at code https://github.com/ngrx/platform/blob/master/modules/router-store/src/router_store_module.ts#L209
StoreRouterConnectingModule should not trigger navigateByUrl if state is modified by guard.
Please look at: http://plnkr.co/edit/SbecXWSzFMnSRA9JFQ0i
latest
Can you make a small repro?
Sample added.
http://plnkr.co/edit/SbecXWSzFMnSRA9JFQ0i
This issue has already been fixed in master and will be in the next release. https://github.com/ngrx/platform/pull/355
When will it be released? Thanks.
I keep getting this error even with new master.
Most helpful comment
I keep getting this error even with new master.