Resolved more caching issues for relationships

This commit is contained in:
lotte
2019-08-22 16:04:08 +02:00
parent 37072dc01e
commit 0bf4c57a43
5 changed files with 74 additions and 39 deletions

View File

@@ -308,6 +308,7 @@ export class RequestService {
*/
hasByHref(href: string): boolean {
let result = false;
/* NB: that this is only a solution because the select method is synchronous, see: https://github.com/ngrx/store/issues/296#issuecomment-269032571*/
this.getByHref(href).pipe(
take(1)
).subscribe((requestEntry: RequestEntry) => result = this.isValid(requestEntry));