Rxjs nested subscribe with multiple inner subscriptions

Original promise based code I’m trying to rewrite: I’m trying to figure a way how to avoid the nested subscriptions anti-pattern in the following scenario: What would be the correct ‘RxJS way’ to do this? Answer That seems pretty strange to me. You’re creating new subscription for each child every time parentResult arrives. Even though those eventually indeed will be destroyed (assuming onDestroy$ implementation is correct), seems wrong. You probably want withLatestFrom(parent$) and three separate pipes for each child. It might look something like: child1$.pipe(takeUntil(globalDeath$), withLatestFrom(parent$)).subscribe(([childResult, parentResult]) => …). Not sure if my JS is correct, can’t test it at