Answer the question
In order to leave comments, you need to log in
How can I improve my Subscription unsubscribe?
The component has several subscriptions from which I unsubscribe in destruction:
ngOnDestroy() {
if (this.orderDefinitionRequestSubscription) {
this.orderDefinitionRequestSubscription.unsubscribe();
}
if (this.createOrderSubscription) {
this.createOrderSubscription.unsubscribe();
}
if (this.createBlockSubscription) {
this.createBlockSubscription.unsubscribe();
}
if (this.orderVersionsSubscription) {
this.orderVersionsSubscription.unsubscribe();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question