2017-12-19 8 views
0

이 forkJoin은 관측 가능함에도 불구하고 완료되지 않습니다. 무엇이 없습니까?rxjs forkJoin이 완료되지 않음

return Observable.forkJoin([ 
    this.ProductManager.get(params['brandId'], params['productId']) 
    .map(product => <Product> product) 
    .do(product => {this.product = product;}) 
    .do(() => console.log('a1'),() => console.log('a2'),() => console.log('a3')), 

    this.basketContext.basket.take(1) 
    .do(() => console.log('b1'),() => console.log('b2'),() => console.log('b3')) 
]) 
.do(() => console.log('1'),() => console.log('2'),() => console.log('3')); 

콘솔 :

b1 
b3 
a1 
a3 
1 

가 왜 forkJoin의 onComplete를 호출되지 않습니다? 후속()가 가입에서 오류가 발생하는 경우

+0

모든 소스 Observables에서 하나 이상의 항목을 방출 하시겠습니까? – martin

답변

0

분명히, 전체 콜백이 완료 결코 ...이 오류는 그래서 forkJoin가 완료되지 그것을 침묵 착각했다.

관련 문제