Skip to content

Commit 43552f9

Browse files
KyleAMathewsclaude
andcommitted
Fix changeset for PR #669 to accurately describe features
Updated changeset to correctly describe: - isLoadingSubset property (not isLoadingMore) - loadingSubset:change events - syncMode configuration options - Comprehensive loading state tracking - Enhanced setWindow utility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b0687ab commit 43552f9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.changeset/cruel-buckets-shop.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
---
2-
"@tanstack/db": patch
2+
"@tanstack/db": minor
33
---
44

5-
Added `isLoadingMore` property and `loadingMore:change` events to collections and live queries, enabling UIs to display loading indicators when more data is being fetched via `syncMore`. Each live query maintains its own isolated loading state based on its subscriptions, preventing loading status "bleed" between independent queries that share the same source collections.
5+
Added comprehensive loading state tracking and configurable sync modes to collections and live queries:
6+
7+
- Added `isLoadingSubset` property and `loadingSubset:change` events to all collections for tracking when data is being loaded
8+
- Added `syncMode` configuration option to collections:
9+
- `'eager'` (default): Loads all data immediately during initial sync
10+
- `'on-demand'`: Only loads data as requested via `loadSubset` calls
11+
- Added comprehensive status tracking to collection subscriptions with `status` property (`'ready'` | `'loadingSubset'`) and events (`status:change`, `status:ready`, `status:loadingSubset`, `unsubscribed`)
12+
- Live queries automatically reflect loading state from their source collection subscriptions, with each query maintaining isolated loading state to prevent status "bleed" between independent queries
13+
- Enhanced `setWindow` utility to return `Promise<void>` when loading is triggered, allowing callers to await data loading completion
14+
- Added `subscription` parameter to `loadSubset` handler for advanced sync implementations that need to track subscription lifecycle

0 commit comments

Comments
 (0)