BACK
Referencematerialize
Reference · 73

materialize

materialize

rxjs.dev

Turns next/error/complete into Notification objects.

Signature

materialize(): OperatorFunction>

What it does

Wraps each Observable event in a Notification object with a kind. Even complete becomes an ordinary value, and then the stream completes.

When to use

Logging a stream's protocol, handling errors as data, testing complex streams.

See also

dematerialize, tap

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