switchMap()

@mvuijs/core / rx / switchMap

switchMap() #

Switch from one Stream to another. This is really useful for robust asynchronous reactivity. It is analogous to the RxJS operator of the same name. There are a million explanations of what it does already online which will explain better then any docstring here could.

See #

Signature #

switchMap<T, O>(project: Function): OperatorFunction<T, O>;

Type parameters #

  • T
  • O

Parameters #

Name Type
project (value: T) => StreamInput <O>

Returns #

OperatorFunction <T, O>

Defined in: packages/core/src/rx/operators/switchMap.ts:17