61142: EditRelationshipList component to proper reload relationships and fix performance issues

This commit is contained in:
Kristof De Langhe
2019-04-08 15:28:18 +02:00
parent 01b60dbf34
commit bbbd6959a8
11 changed files with 332 additions and 75 deletions

View File

@@ -265,4 +265,15 @@ export class RequestService {
return result;
}
/**
* Create an observable that emits a new value whenever the availability of the cached request changes.
* The value it emits is a boolean stating if the request exists in cache or not.
* @param href The href of the request to observe
*/
hasByHrefObservable(href: string): Observable<boolean> {
return this.getByHref(href).pipe(
map((requestEntry: RequestEntry) => this.isValid(requestEntry))
);
}
}