Skip to content

Commit

Permalink
fix(RouterStore): Only serialize snapshot in preactivation hook
Browse files Browse the repository at this point in the history
Closes #286
  • Loading branch information
brandonroberts committed Aug 17, 2017
1 parent 090462a commit 582511d
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 582511d

Please sign in to comment.