Skip to content

Commit

Permalink
fix(RouterStore): capture router state on router navigated
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Jan 20, 2019
1 parent 3321a79 commit 81c05e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/router-store/src/router_store_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ export class StoreRouterConnectingModule {
}

private dispatchRouterNavigated(event: NavigationEnd): void {
this.dispatchRouterAction(ROUTER_NAVIGATED, { event });
const routerState = this.serializer.serialize(
this.router.routerState.snapshot
);
this.dispatchRouterAction(ROUTER_NAVIGATED, { event, routerState });
}

private dispatchRouterAction(
Expand Down

0 comments on commit 81c05e4

Please sign in to comment.