@streamscloud/kit 0.57.0 → 0.57.1

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.
@@ -13,6 +13,8 @@ export declare class KeyedCursorDataLoader<T> {
13
13
  items: (key?: string) => T[];
14
14
  loading: (key?: string) => boolean;
15
15
  initialLoading: (key?: string) => boolean;
16
+ /** The key's last attempt did not deliver a page, whether it returned nothing or threw; cleared when the next attempt for that key starts. */
17
+ failed: (key?: string) => boolean;
16
18
  canLoadMore: (key?: string) => boolean;
17
19
  /** False until the key's first page loaded without failing, so a failed load can be retried; a later failed page never clears it. */
18
20
  isLoaded: (key?: string) => boolean;
@@ -13,6 +13,8 @@ export class KeyedCursorDataLoader {
13
13
  items = (key = '') => this.loaderFor(key).items;
14
14
  loading = (key = '') => this.loaderFor(key).loading;
15
15
  initialLoading = (key = '') => this.loaderFor(key).initialLoading;
16
+ /** The key's last attempt did not deliver a page, whether it returned nothing or threw; cleared when the next attempt for that key starts. */
17
+ failed = (key = '') => this.loaderFor(key).failed;
16
18
  canLoadMore = (key = '') => this.loaderFor(key).continuationToken.canLoadMore;
17
19
  /** False until the key's first page loaded without failing, so a failed load can be retried; a later failed page never clears it. */
18
20
  isLoaded = (key = '') => this._loaded[key] === true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.57.0",
3
+ "version": "0.57.1",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",