This rule effects failures if an attempt is made to send a notification to an observer after a complete
or error
notification has already been sent.
Note that the rule does not perform extensive analysis. It uses a straightforward and limited approach to catch obviously redundant notifications.
Examples of incorrect code for this rule:
import { Subject } from "rxjs";
const subject = new Subject<number>();
subject.next(42);
subject.error(new Error("Kaboom!"));
subject.complete();
Examples of correct code for this rule:
import { Subject } from "rxjs";
const subject = new Subject<number>();
subject.next(42);
subject.error(new Error("Kaboom!"));
This rule has no options.