1.2.1 • Published 6 months ago

rxjs-complete-when v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

RxJS completeWhen Operator

by David Björkevik

An RxJS operator that causes an observable to complete early if/when another controlling observable completes.

This is very useful to easliy limit the lifetime of a pipe, for instance when writing user interface modules: Set up a simple Subject called "destroyed" for your UI component and call its .complete()-method upon component destruction. Now you may use .pipe(completeWhen(destroyed)) to make sure your subscriptions are cancelled when your component is destroyed.

Installation

npm install rxjs-complete-when
1.2.0

6 months ago

1.2.1

6 months ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.0.0

5 years ago