Skip to content
This repository has been archived by the owner on Jan 10, 2018. It is now read-only.

How should garbage collection be implemented? #465

Closed
mrpmorris opened this issue Sep 15, 2017 · 1 comment
Closed

How should garbage collection be implemented? #465

mrpmorris opened this issue Sep 15, 2017 · 1 comment

Comments

@mrpmorris
Copy link

When normalizing data I end up with state that looks like this

users: {
UserId1: ...instance of user...
UserId2: ...instance of user...
}

The problem with this is obviously that it will continue to grow over time. Does anyone have a working solution that identifies when a certain slice of state is no longer in use (e.g. "users") so I can dispatch an action to clear it down?

@robwormald
Copy link
Contributor

Please take "how-to" questions to gitter - https://gitter.im/ngrx/platform - GitHub is for bugs and issues. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants