Skip to content

Commit dcc48e2

Browse files
committed
debounce toast
1 parent 0edb749 commit dcc48e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/core/toast/toast.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class ToastComponent implements OnInit {
1818

1919
ngOnInit(): void {
2020
this.toastService.events
21+
.debounceTime(500)
2122
.map(toast => this.applyStyle(toast))
2223
.do(toast => this.addToast(toast))
2324
.delay(4800)

0 commit comments

Comments
 (0)