-
-
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
Document usage of DefaultRouterStateSerializer with StoreDevTools #2812
Comments
A similar notice already exists here for immutability checks being broken https://ngrx.io/guide/store/configuration/runtime-checks. If the DefaultRouterStateSerializer is likely to cause multiple problems, maybe it shouldn't be the default? Are you confident that the |
Hey @david-shortman,
Yes, I created #2814 for this and then I noticed the alert about it and ended up disabling the immutability checks.
Yes, I also commented it about its naming in #2686.
Unfortunately yes, once you start navigating in a large app, it freezes because the |
Feel free to create a Pull Request that mentions this (or to add a devtools recipe to the docs). |
I'll add some docs on this since I recently touched adding a warning during dev runtime for this. |
The existing docs already mention that the Store Devtools are likely to suffer with the default serializer, offer to use the MinimalRouterStateSerializer, and explain how to implement a custom serializer. I don't think additional documentation is necessary, although feedback on the clarity/organization of the existing docs would be helpful. As a next step, since the @timdeschryver Do you know the motivation to have the |
The runtime checks were added after the original router-store implementation. We didn't know how this would evolve, so we left things as they were. I do agree that it would make sense to rename the two serializers to |
@david-shortman we discussed this, and we all agree that this rename makes sense. |
Closing this in favor of #3416 |
Once you use the
DefaultRouterStateSerializer
, it's impracticable to use StoreDevTools, as it freezes due to the Excessive use of memory and CPU.References:
https://stackoverflow.com/questions/61594594/ngrx-and-redux-dev-tool-performace-issue-due-to-excessive-use-of-memory-and-cpu
zalmoxisus/redux-devtools-extension#455
Sample:
I wanted to request the inclusion of some documentation/example on how to sanitize it to prevent StoreDevTools' freeze. Currently I don't know what's the best way for this or even if it's possible.
Other information:
I must use
DefaultRouterStateSerializer
as it's required for NX Data Persistence works properly.The text was updated successfully, but these errors were encountered: