Skip to content
Source
Sign inSign up
TanStack/db

Handle pushed down predicates in query collection #681

MergedKyleAMathews(GitHub profile, opens in a new tab)merged 4 commits intoquery-driven-sync fromrefs/pull/681/headmerged by samwillis(GitHub profile, opens in a new tab)

Showing 4 changed files with 6 additions and 6 deletions (loading 2).

x
0 of 4 viewed, 4 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
1 addition and 6 deletionspackages/db/src/query/subset-dedupe.tsModified
View file
@@ -239,10 +239,5 @@
* would reflect the mutated values rather than what was actually loaded.
export function cloneOptions(options: LoadSubsetOptions): LoadSubsetOptions {
- return {
- where: options.where,
- orderBy: options.orderBy,
- limit: options.limit,
- // Note: We don't clone subscription as it's not part of predicate matching
- }
+ return { ...options }
packages/query-db-collection/src/query.tsModified
View file
Loading the diff