Skip to content

Commit

Permalink
feat(router): reverting some changes and applying suggestions
Browse files Browse the repository at this point in the history
Closes #2225
  • Loading branch information
evgenyfedorenko committed Feb 5, 2020
1 parent 49719c5 commit 74e26a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions projects/ngrx.io/content/guide/router-store/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface StoreRouterConfig {
<div class="alert is-important">

The `DefaultRouterStateSerializer` cannot be used when [serializability runtime checks](guide/store/configuration/runtime-checks) are enabled.
With runtime checks enabled `MinimalRouterStateSerializer` serializer is used by default in `RouterStoreModule` when no other serializer is provided. This also applies to Ivy with immutability runtime checks.
With serializability runtime checks enabled, the `MinimalRouterStateSerializer` serializer **must** be used. This also applies to Ivy with immutability runtime checks.

</div>

Expand All @@ -41,14 +41,14 @@ import { Params, RouterStateSnapshot } from '@angular/router';
import { RouterStateSerializer } from '@ngrx/router-store';

export interface RouterStateUrl {
url: string;
params: Params;
queryParams: Params;
url: string;
params: Params;
queryParams: Params;
}

export class CustomSerializer implements RouterStateSerializer&lt;RouterStateUrl&gt; {
serialize(routerState: RouterStateSnapshot): RouterStateUrl {
let route = routerState.root;
serialize(routerState: RouterStateSnapshot): RouterStateUrl {
let route = routerState.root;

while (route.firstChild) {
route = route.firstChild;
Expand Down

0 comments on commit 74e26a6

Please sign in to comment.