@livequery/client 2.0.2 → 2.0.3

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.
@@ -166,7 +166,7 @@ export class CollectionObservable extends Observable {
166
166
  this.#IdMap.clear();
167
167
  state.items.map((item, index) => this.#IdMap.set(item.id, index));
168
168
  }
169
- if (direction) {
169
+ if (direction && stream.some(s => !!s.data?.paging)) {
170
170
  // Cache paging
171
171
  this.#pages.clear();
172
172
  stream.forEach(s => s.data?.paging && this.#pages.set(s.ref, s.data?.paging));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "repository": {
5
5
  "url": "https://github.com/livequery/client"
6
6
  },
7
- "version": "2.0.2",
7
+ "version": "2.0.3",
8
8
  "description": "",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",