Rxjs nested subscribe with multiple inner subscriptions
问题 Original promise based code I'm trying to rewrite: parentPromise .then((parentResult) => { childPromise1 .then(child1Result => child1Handler(parentResult, child1Result)); childPromise2 .then(child1Result => child2Handler(parentResult, child2Result)); childPromise3 .then(child1Result => child3Handler(parentResult, child3Result)); }); I'm trying to figure a way how to avoid the nested subscriptions anti-pattern in the following scenario: parent$ .pipe(takeUntil(onDestroy$)) .subscribe(