在以下代码中发出 destroyed$ 时, takeUntil是否会管理 mergeMap 的订阅?换句话说,mergeMap 泄漏是订阅吗?
combineLatest([
this.selectedCustomerId$.pipe(
-->mergeMap<--(customerId => invoicesService.getInvoices(customerId)
),
this.configuration$
]).pipe(
takeUntil(this.destroyed$)
).subscribe([invoices, configuration] => this.displayInvoices(invoices, configuration));
谢谢!
慕莱坞森
相关分类