I'm a little new to RxJs, and I'm trying to mix the world of promises and observables.
Here's what I want: I have an observable (call it clickObs ) that listens for a click and as a result interrogates the database, creating a promise that resolves the value when the database query completes (successfully). Thus, my observable generates a stream of promises from the click stream, and I want to create a stream of corresponding allowed values ββfrom this observable.
From past stackoverflow questions I read about defer , flatMap , mergeAll and fromPromise , but I can't figure out how to formulate four to solve my problem.
Any suggestions?
source share