Step into Swift logo

What is the FlatMapLatest Operator in RxSwift?

FlatMapLatest Operator

RxSwift: FlatMapLatest Operator

.flatMapLatest { }

  • Combination of .map and .switchLatest
  • FlatMaps as a normal .flatMap but when a new observable is emitted from a new Observable it unsubscribes from the previous Observable.
  • Useful for networking operations.

< All Posts