Skip to content

Instantly share code, notes, and snippets.

@cartant
Created December 4, 2020 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cartant/1ad0d1fd1e08798ec918381b8ef0be9a to your computer and use it in GitHub Desktop.
Save cartant/1ad0d1fd1e08798ec918381b8ef0be9a to your computer and use it in GitHub Desktop.
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