Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { config } from "rxjs";
config.onStoppedNotification = (notification) => {
switch (notification.kind) {
case "E":
const error: any = new Error(
"Cannot notify stopped observer"
);
error.notification = notification;
throw error;
default:
return;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment