Created
December 4, 2020 05:49
-
-
Save cartant/1ad0d1fd1e08798ec918381b8ef0be9a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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