BACK
ReferenceconcatMapTo
Reference · 49

concatMapTo

concatMapTo

Deprecated
rxjs.dev

Maps every input to the same inner Observable, sequentially.

Signature

concatMapTo(innerObservable: ObservableInput): OperatorFunction

What it does

Ignores the source value itself and, for each emission, subscribes to the given innerObservable. The next inner starts only after the previous one completes.

When to use

Supporting legacy code. In new code, concatMap(() => inner$) reads more clearly and doesn't use a deprecated API.

Deprecated API

Marked deprecated in RxJS 7. In new code, use concatMap(() => inner$).

See also

concatMap, concatAll

script.ts // TypeScript
CONSOLE · Console output
Hit Run to see the result...