getArchivedColleaguesList(): void {
this.sharedColleaguesService.archivedColleaguesList
.pipe(
filter(archivedColleaguesList => archivedColleaguesList !== null && archivedColleaguesList.length > 0),
takeUntil(this.ngUnsubscribe)
)
.subscribe((archivedColleaguesList: Colleague[]) => {
this.archivedColleaguesList = archivedColleaguesList;
})
}
// Аналогично componentDidMount и componentDidUpdate:
useEffect(() => {
// Обновляем заголовок документа с помощью API браузера
document.title = `Вы нажали ${count} раз`;
});