moroshko / rxviz

Rx Visualizer - Animated playground for Rx Observables

Home Page:https://rxviz.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flatMapLatest not working

codeOfRobin opened this issue · comments

commented

Hey! I can't seem to get flatMapLatest working (the console says it's not a valid function)

Sample code:

 Rx.Observable.create(observer => {
  setTimeout(() => observer.next(1), 500)
  setTimeout(() => observer.next(2), 2500)
  setTimeout(() => observer.next(3), 4500)
}).flatMap ( number => {
  return Rx.Observable.create(observer => {
	setTimeout(() => observer.next(number), 500)
	setTimeout(() => observer.next(number * 2), 1000)
	setTimeout(() => observer.next(number * 3), 1500)
  })
})

flatMapLatest is not available in RxJS 5: Docs