You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
What is the current behavior?
The RouterReducerState.state property is still of type RouterStateSnapshot even when using a custom RouterStateSerializer.
Expected behavior:
The RouterReducerState.state property type should be either the type of the RouterStateSerializer generic type or any.
Minimal reproduction of the problem with instructions:
Follow the instruction of the router-store api doc for creating a custom router state serializer and try to retrieve the router state. In typescript the type is wrong so you have to cast to any to access the custom properties of the router state.
Even with my custom serializer returning a custom RouterStateUrl interface, the router state type is RouterStateSnapshot and I can't access the params, queryParams and data properties without casting to any.
Version of affected browser(s),operating system(s), npm, node and ngrx:
I'm submitting a...
What is the current behavior?
The
RouterReducerState.state
property is still of typeRouterStateSnapshot
even when using a custom RouterStateSerializer.Expected behavior:
The
RouterReducerState.state
property type should be either the type of the RouterStateSerializer generic type or any.Minimal reproduction of the problem with instructions:
Follow the instruction of the router-store api doc for creating a custom router state serializer and try to retrieve the router state. In typescript the type is wrong so you have to cast to any to access the custom properties of the router state.
Even with my custom serializer returning a custom RouterStateUrl interface, the router state type is RouterStateSnapshot and I can't access the params, queryParams and data properties without casting to any.
Version of affected browser(s),operating system(s), npm, node and ngrx:
@ngrx/[email protected]
Other information:
The text was updated successfully, but these errors were encountered: