@livequery/client 1.0.48 → 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,8 +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
|
-
|
|
166
|
-
if (!this.ref || __classPrivateFieldGet(this, _CollectionObservable_state, "f").loading || has_more_data_refs.length == 0)
|
|
165
|
+
if (!this.ref || __classPrivateFieldGet(this, _CollectionObservable_state, "f").loading)
|
|
167
166
|
return;
|
|
168
167
|
if (flush) {
|
|
169
168
|
__classPrivateFieldSet(this, _CollectionObservable_next_cursor, {}, "f");
|
|
@@ -173,6 +172,7 @@ class CollectionObservable extends rxjs_1.Observable {
|
|
|
173
172
|
flush && __classPrivateFieldGet(this, _CollectionObservable_IdMap, "f").clear();
|
|
174
173
|
__classPrivateFieldSet(this, _CollectionObservable_state, Object.assign(Object.assign({}, __classPrivateFieldGet(this, _CollectionObservable_state, "f")), { items: flush ? [] : __classPrivateFieldGet(this, _CollectionObservable_state, "f").items, error: null, loading: true, options }), "f");
|
|
175
174
|
__classPrivateFieldGet(this, _CollectionObservable_$state, "f").next(__classPrivateFieldGet(this, _CollectionObservable_state, "f"));
|
|
175
|
+
const has_more_data_refs = __classPrivateFieldGet(this, _CollectionObservable_refs, "f").filter(ref => __classPrivateFieldGet(this, _CollectionObservable_next_cursor, "f")[ref] === undefined || (__classPrivateFieldGet(this, _CollectionObservable_next_cursor, "f")[ref] && __classPrivateFieldGet(this, _CollectionObservable_next_cursor, "f")[ref] != '#'));
|
|
176
176
|
const queries = has_more_data_refs.map(ref => (this
|
|
177
177
|
.collection_options
|
|
178
178
|
.transporter
|