Encountering a bug in my code
ObjectUnsubscribedErrorImpl {message: 'object unsubscribed', name: 'ObjectUnsubscribedError', ngDebugContext: DebugContext_, ngErrorLogger: ƒ} message : "object unsubscribed" name : "ObjectUnsubscribedError"
This is the piece of code causing the issue:
clickSubject: Subject<any> = new Subject();
l_getClickButtonCancella(event: boolean) {
if (event) {
this.clickSubject.next(1);
}
}
Seeking suggestions on how to resolve this problem. Any ideas?