badmfck-api-server 1.7.7 → 1.7.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ export declare class DataProvider<T> {
|
|
12
12
|
data: T | null | undefined;
|
13
13
|
error?: boolean;
|
14
14
|
}>, cacheTime?: number, name?: string);
|
15
|
-
forceUpdate(): void
|
15
|
+
forceUpdate(): Promise<void>;
|
16
16
|
localUpdate(data: T): void;
|
17
17
|
getData(): Promise<T | null | undefined>;
|
18
18
|
}
|
@@ -24,12 +24,12 @@ class DataProvider {
|
|
24
24
|
if (!this.name)
|
25
25
|
this.name = "DataProvider " + (DataProvider.nextID++);
|
26
26
|
}
|
27
|
-
forceUpdate() {
|
27
|
+
async forceUpdate() {
|
28
28
|
if (this.busy)
|
29
29
|
return;
|
30
30
|
this.wasError = false;
|
31
31
|
this.lastRequestTime = 0;
|
32
|
-
this.getData();
|
32
|
+
await this.getData();
|
33
33
|
}
|
34
34
|
localUpdate(data) {
|
35
35
|
if (this.busy)
|