Say I wanted to separately handle the first event emitted by an Observable, but then continue my subscription.
For example, if I had the following chain:
observable.throttleTime(2000)
.takeFirst(() => console.log('potato'))
.switchMap((event:MouseEvent) => {
const element:Element = event.target as Element;
return this.innerObservable(('tomato'));
})
.subscribe(({result}) => console.log(result))
That fails, but how would I go about making such behaviour work?