Skip to content

How to do a conditional return in withObservables with a non-reactive value? #1427

Answered by radex
Albert-Gao asked this question in Q&A
Discussion options

You must be logged in to vote

Simply return foo ? Rx.of(0) : query.observeCount()

https://rxjs-dev.firebaseapp.com/api/index/function/of

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Albert-Gao
Comment options

@Albert-Gao
Comment options

@radex
Comment options

Answer selected by Albert-Gao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants