Skip to content

Commit 13e510d

Browse files
committed
fix(config-files): add awareness of pending tasks
1 parent 9bd1c9a commit 13e510d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/config-files/src/loader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { HttpClient } from '@angular/common/http';
22
import { inject, Injectable, Injector } from '@angular/core';
3+
import { pendingUntilEvent } from '@angular/core/rxjs-interop';
34
import { Exception } from '@angularity/core';
45
import { catchError, map, Observable, switchMap } from 'rxjs';
56

@@ -56,6 +57,7 @@ export class HttpClientConfigFileLoader implements ConfigFileLoader {
5657
await validator.validate(def.schema, parsed);
5758
return parsed as T;
5859
}),
60+
pendingUntilEvent(this.injector),
5961
);
6062
}
6163

0 commit comments

Comments
 (0)