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
The recent changes to freeze the payload cause an issue when using the @ngrx/router-store library.
A number of the actions made available by that library allow for the NavigationExtras to be included in the action payload. One of those values can be the ActivatedRoute:
When the go action is processed by the store reducers, the properties of the ActivatedRoute, including Observables etc, get frozen, which causes all sorts of errors later on.
Not sure if this is really an issue with this library, or bad practice to include these sorts of objects in the action payload. Just thought I'd bring it to your attention.
The text was updated successfully, but these errors were encountered:
The ActivatedRoute is a complex object with circular references, so it cannot be frozen. To get around this, you need to exclude these actions from being frozen by this library.
The recent changes to freeze the payload cause an issue when using the @ngrx/router-store library.
A number of the actions made available by that library allow for the
NavigationExtras
to be included in the action payload. One of those values can be theActivatedRoute
:When the go action is processed by the store reducers, the properties of the
ActivatedRoute
, includingObservables
etc, get frozen, which causes all sorts of errors later on.Not sure if this is really an issue with this library, or bad practice to include these sorts of objects in the action payload. Just thought I'd bring it to your attention.
The text was updated successfully, but these errors were encountered: