我想合并来自多个可观测对象的最新emits 值,所以现在我使用的是.withLatestFrom
.只是,它将数据嵌套在嵌套数组中,而不是将数据推入新的数组值.下面是示例代码.
有没有关于如何使用.withLatestFrom
个元素来检索多个可观测emits 的 idea ?
source0
.withLatestFrom(source1)
.withLatestFrom(source2)
.withLatestFrom(source3)
.map((data) => { console.log(data) });