Gilles Gauthier
Jul 27, 2017 · 1 min read

Hi,

Good article!

Don’t you need to unsubscribe your `this.formChange` on ngOnDestroy? Like this

ngOnDestroy() {
this.formChange && this.formChange.unsubscribe();
}

Call the dispatch method on the subscribe response cause me a lot of memory usage sometimes and now I always unsubscribe my Subscription objects.

    Gilles Gauthier

    Written by

    Dév sur Symfony2 et autre joyeuserie https://t.co/H88KOig8mW