Breaking Changes (Angular) #786
Wayne-Mather
started this conversation in
General
Replies: 1 comment 5 replies
-
This is a mistake: It should be: @Injectable()
class TodosStore extends Store {
ngOnDestroy() {
this.destroy();
}
} |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I don't understand your breaking change and am a little confused if I need to call destroy() to stop memory leaks (unsubscribe) or not.
Your example says this:
This is not component code, and your injecting the store into the store.... If we use providers in our modules or within our components for the stores, do we need to manually call destroy() to stop any memory leaks?
For example, lets say I have a lazy loaded module and a root component for that called a shell, do we have to do the following for the 2 examples? Please not this is not 100% accurate code as we are talking concept.
Beta Was this translation helpful? Give feedback.
All reactions