unsubscribeToStateChanges method
It is recommended to unsubscribe the callback functions after the component has been unmounted.
Implementation
unsubscribeToStateChanges(SubscriptionFunction fn) {
this.stateChanges.unsubscribe(fn);
}
It is recommended to unsubscribe the callback functions after the component has been unmounted.
unsubscribeToStateChanges(SubscriptionFunction fn) {
this.stateChanges.unsubscribe(fn);
}