Created
May 3, 2021 08:58
-
-
Save armanozak/b955bed3c105af310c59bba4fc3e1e79 to your computer and use it in GitHub Desktop.
[What's New in RxJS 7] RxJS 7 detect empty error with EmptyError #blog #rxjs
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 { EMPTY, EmptyError, lastValueFrom } from "rxjs"; | |
lastValueFrom(EMPTY).catch(err => console.log(err instanceof EmptyError)); | |
// (asynchronously) true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment