@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.
- package/build/Collection.js +2 -2
- package/package.json +1 -1
package/build/Collection.js
CHANGED
|
@@ -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
|
-
|
|
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);
|