@livequery/client 1.0.47 → 1.0.49

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.
@@ -162,7 +162,7 @@ class CollectionObservable extends rxjs_1.Observable {
162
162
  actions.update && __classPrivateFieldGet(this, _CollectionObservable_$state, "f").next(__classPrivateFieldGet(this, _CollectionObservable_state, "f"));
163
163
  }
164
164
  fetch_data(options = {}, flush = false) {
165
- if (!this.ref)
165
+ if (!this.ref || __classPrivateFieldGet(this, _CollectionObservable_state, "f").loading)
166
166
  return;
167
167
  if (flush) {
168
168
  __classPrivateFieldSet(this, _CollectionObservable_next_cursor, {}, "f");
@@ -190,7 +190,7 @@ class CollectionObservable extends rxjs_1.Observable {
190
190
  }
191
191
  fetch_more() {
192
192
  var _a;
193
- !__classPrivateFieldGet(this, _CollectionObservable_state, "f").loading && __classPrivateFieldGet(this, _CollectionObservable_state, "f").has_more && this.fetch_data((_a = __classPrivateFieldGet(this, _CollectionObservable_state, "f")) === null || _a === void 0 ? void 0 : _a.options);
193
+ this.fetch_data((_a = __classPrivateFieldGet(this, _CollectionObservable_state, "f")) === null || _a === void 0 ? void 0 : _a.options);
194
194
  }
195
195
  filter(filters) {
196
196
  this.fetch_data(filters, true);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "repository": {
4
4
  "url": "https://github.com/livequery/client"
5
5
  },
6
- "version": "1.0.47",
6
+ "version": "1.0.49",
7
7
  "description": "",
8
8
  "main": "build/index.js",
9
9
  "types": "build/index.d.ts",