I'm wondering if it's possible to "hold" the if validation to only verify the next statement when a subscription is complete.
if(a) {
observable1.pipe(take(1)).subscribe((data) => {
// do something with data and, then, validate if (b)
});
} else if(b) {
// same logic but with another observable
}
This approach is possible?