-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router Store: make minimal router state serializer the default #2225
Comments
I could take this one, likely will need more info |
The short answer is to update the docs and update the config's default serializer to be the minimal router serializer. But I'm assuming we would also want to update the action's to reflect the minimal payloads (e.g. usage of |
I am playing with router store in ngrx example app and passing in full serializer
getting an error
Should we fix this? |
@evgenyfedorenko Hi, the runtimeChecks: {
strictStateSerializability: true,
strictActionSerializability: true,
} It's due to the prototypes chain from |
@timdeschryver Do we want to be able to invoke |
@timdeschryver in case you missed it. |
The default options should be If the |
@timdeschryver btw, I find it a bit confusing that both |
@alex-okrushko I agree, if I remember correctly it was done like this to not have a breaking change. I also want to point out that it's not just setting the serializer, it's also used to dispatch the router events. With minimal, it will only dispatch the router event id and the url. |
…ter setup module Closes ngrx#2225
BREAKING CHANGE: The MinimalRouterStateSerializer is enabled by default. BEFORE: If no router state serializer is provided through the configuration of router store, the DefaultRouterStateSerializer is used. AFTER: If no router state serializer is provided through the configuration of router store, the MinimalRouterStateSerializer is used. Closes #2225
This provides the minimal set of router state that is fully immutable and serializable. Will have to do some coordination with libraries such as Nx that use the full router state for the navigation effects.
The text was updated successfully, but these errors were encountered: