Skip to content

Commit

Permalink
fix(RouterStore): Only serialize snapshot in preactivation hook (#287)
Browse files Browse the repository at this point in the history
Closes #286
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Aug 17, 2017
1 parent 78772b5 commit bbb7c99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/router-store/src/router_store_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ export class StoreRouterConnectingModule {
private dispatchRouterNavigation(): void {
this.dispatchRouterAction(ROUTER_NAVIGATION, {
routerState: this.routerState,
event: {
id: this.lastRoutesRecognized.id,
url: this.lastRoutesRecognized.url,
urlAfterRedirects: this.lastRoutesRecognized.urlAfterRedirects,
state: this.serializer.serialize(this.routerState),
} as RoutesRecognized,
event: new RoutesRecognized(
this.lastRoutesRecognized.id,
this.lastRoutesRecognized.url,
this.lastRoutesRecognized.urlAfterRedirects,
this.routerState
),
});
}

Expand Down

0 comments on commit bbb7c99

Please sign in to comment.