Skip to content

Provide properly typed selectors example for CustomSerializer  #4301

Open
@moniuch

Description

@moniuch

Information

When following the instructions for creating a custom serializer, there is no explanation how to provide custom selectors for the returned properties { url, params, queryParams } (as the default ones provided by getRouterSelectors cease to work). It's maybe not that hard to write code that works, the intimidating part for a lot of users might be the proper TS typing.

A good accompanying selectors example for this serializer would be gold. Thank you.

Documentation page

https://ngrx.io/guide/router-store/configuration#custom-router-state-serializer

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions