Skip to content
Source
Sign inSign up
TanStack/db

Handle pushed down predicates in query collection #646

Closedkevin-dp(GitHub profile, opens in a new tab)wants to merge 16 commits intomain fromrefs/pull/646/headopened

Showing 14 changed files with 40 additions and 88 deletions (loading 11).

x
0 of 14 viewed, 14 left
5 additions and 0 deletions.changeset/silent-trains-tell.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+"@tanstack/query-db-collection": patch
+---
+​
+Handle pushed-down predicates
25 additions and 74 deletionspackages/db/src/collection/events.tsModified
View file
@@ -1,3 +1,4 @@
+import { EventEmitter } from "../event-emitter.js"
import type { Collection } from "./index.js"
import type { CollectionStatus } from "../types.js"
​
@@ -31,9 +32,21 @@
subscriberCount: number
​
+/**
+ * Event emitted when the collection's loading more state changes
+ */
+export interface CollectionLoadingSubsetChangeEvent {
+ type: `loadingSubset:change`
+ collection: Collection<any, any, any, any, any>
+ isLoadingSubset: boolean
+ previousIsLoadingSubset: boolean