Skip to content
Source
Sign inSign up
TanStack/db

feat(db): preserve applied loadSubset outcomes #1772

ClosedKyleAMathews(GitHub profile, opens in a new tab)wants to merge 13 commits intomain fromcodex/loadsubset-outcome-plumbingopened

Showing 21 changed files with 146 additions and 5 deletions (loading 18).

x
0 of 21 viewed, 21 left
6 additions and 0 deletions.changeset/add-load-subset-outcomes.mdAdded
View file
@@ -0,0 +1,6 @@
+---
+'@tanstack/db': patch
+'@tanstack/db-sqlite-persistence-core': patch
+---
+​
+Allow `loadSubset` adapters to report whether more rows exist and preserve applied, request-scoped outcomes through live-query demand, persistence, and window coordination.
7 additions and 4 deletionspackages/db-sqlite-persistence-core/src/persisted.tsModified
View file
@@ -21,7 +21,9 @@
CollectionIndexMetadata,
DeleteMutationFnParams,
InsertMutationFnParams,
+ LoadSubsetFn,
LoadSubsetOptions,
+ LoadSubsetResult,
PendingMutation,
SyncAppliedReceipt,
SyncConfig,
@@ -1015,8 +1017,8 @@
async loadSubset(
options: LoadSubsetOptions,