shelving 1.188.3 → 1.188.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/store/FetchStore.d.ts +1 -1
- package/store/FetchStore.js +3 -2
package/package.json
CHANGED
package/store/FetchStore.d.ts
CHANGED
package/store/FetchStore.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequiredError } from "../error/RequiredError.js";
|
|
2
2
|
import { isAsync } from "../util/async.js";
|
|
3
|
-
import { ABORTED } from "../util/constants.js";
|
|
3
|
+
import { ABORTED, NONE } from "../util/constants.js";
|
|
4
4
|
import { awaitDispose } from "../util/dispose.js";
|
|
5
5
|
import { BooleanStore } from "./BooleanStore.js";
|
|
6
6
|
import { Store } from "./Store.js";
|
|
@@ -15,7 +15,7 @@ export class FetchStore extends Store {
|
|
|
15
15
|
* Store that indicates the busy state of this store.
|
|
16
16
|
* - Can be listened to for e.g. loading spinners etc.
|
|
17
17
|
*/
|
|
18
|
-
busy
|
|
18
|
+
busy;
|
|
19
19
|
// Override to possibly trigger a fetch when `this.loading` is read.
|
|
20
20
|
// This is because when we check `store.loading` in a component we are signalling intent that we wish to use that value.
|
|
21
21
|
get loading() {
|
|
@@ -39,6 +39,7 @@ export class FetchStore extends Store {
|
|
|
39
39
|
// Override to save callback.
|
|
40
40
|
constructor(value, callback) {
|
|
41
41
|
super(value);
|
|
42
|
+
this.busy = new BooleanStore(value === NONE);
|
|
42
43
|
this._callback = callback;
|
|
43
44
|
}
|
|
44
45
|
/**
|