Skip to content

Commit

Permalink
fix(cdk): ValueChanges add distinctUntilChanged (#5586)
Browse files Browse the repository at this point in the history
Co-authored-by: a.inkin <[email protected]>
  • Loading branch information
waterplea and a.inkin authored Oct 10, 2023
1 parent 090b8c7 commit d3e40ad
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export class TuiValueChangesDirective<T> implements DoCheck {
private readonly refresh$ = new Subject<Observable<T>>();

@Output()
readonly tuiValueChanges = this.refresh$.pipe(distinctUntilChanged(), switchAll());
readonly tuiValueChanges = this.refresh$.pipe(
distinctUntilChanged(),
switchAll(),
distinctUntilChanged(),
);

constructor(
@Optional()
Expand Down

0 comments on commit d3e40ad

Please sign in to comment.