Skip to content

Commit 112f0cc

Browse files
committed
fix(pipe): use subject for stateChanges
BREAKING CHANGE: let it be stable
1 parent 2f58eae commit 112f0cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/timeago.pipe.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {
66
Optional,
77
ChangeDetectorRef
88
} from '@angular/core';
9-
import { Subscription, ReplaySubject } from 'rxjs';
9+
import { Subscription, Subject } from 'rxjs';
1010
import { TimeagoClock } from './timeago.clock';
1111
import { TimeagoFormatter } from './timeago.formatter';
1212
import { TimeagoIntl } from './timeago.intl';
1313
import { isDefined, coerceBooleanProperty, dateParser } from './util';
14-
import { filter, map } from 'rxjs/operators';
14+
import { filter } from 'rxjs/operators';
1515

1616
@Injectable()
1717
@Pipe({
@@ -32,7 +32,7 @@ export class TimeagoPipe implements PipeTransform, OnDestroy {
3232
* - Intl change
3333
* - Clock tick
3434
*/
35-
stateChanges = new ReplaySubject<void>();
35+
stateChanges = new Subject<void>();
3636

3737
constructor(@Optional() intl: TimeagoIntl,
3838
cd: ChangeDetectorRef,

0 commit comments

Comments
 (0)