import { Component , OnInit } from '@angular/core' ; import { BreadcrumbComponent } from '@spartacus/storefront' ; import { Observable , timer } from 'rxjs' ; import { debounce } from 'rxjs/operators' ; @ Component ( { selector : 'app-dvnt-breadcrumbs' , templateUrl : './dvnt-breadcrumbs.component.html' , styleUrls : [ './dvnt-breadcrumbs.component.scss' ] , } ) export class DvntBreadcrumbsComponent extends BreadcrumbComponent implements OnInit { myCrumbs$ : Observable < any [ ] > ; ngOnInit ( ) { super . ngOnInit ( ) ; this . myCrumbs$ = this . crumbs$ . pipe ( debounce ( ( ) => timer ( 10 ) ) ) ; } }