rxjs6 Piping two observables gives subscribe is not a function

Multi tool use
Multi tool use


rxjs6 Piping two observables gives subscribe is not a function



rxjs 6.2.1



I'm getting ClusterStreams__.a.subscribe is not a function


ClusterStreams__.a.subscribe is not a function



I'm trying to pipe the results of getClusterArns() into describeClusters() with the below code ...


getClusterArns()


describeClusters()


function getClusterArns() {
const ecs = new AWS.ECS();
return ecs.listClusters().promise();
}

function describeClusters(clusterArns) {
const params = { clusters: clusterArns };
const ecs = new AWS.ECS();
return ecs.describeClusters(params).promise();
}


export const ClusterArnStream = from(getClusterArns());
export const ClusterStream = pipe(
combineLatest(ClusterArnStream),
mergeMap(([_, clusterArnsResponse]) => describeClusters(clusterArnsResponse.clusterArns)),
map(x => x.clusters),
multicast(() => new ReplaySubject(1))
);









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

p7flbD6otg7w,k8,a,UrckwajR9
9KFpkm517ts2G70tS3a76FfHTO8cTlOCCasew

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications