I have this observable :
const myObservable = Observable.combineLatest(v1, v2)
.filter(([v1, v2]: [boolean, boolean]) => v1 && v2)
.withLatestFrom(myServerCall)
.subscribe((data) => {
console.log(data);
});
Where myServercall is an http request.
I don't want to make an http call when my filters are not ok. But it always call my server even if it never come inside my subscribe function.
What can I do to avoid useless server call ?