Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 9, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tanstack/angular-db@0.1.44

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/db@0.5.18

Patch Changes

  • fix(db): prevent live query from being marked ready before subset data is loaded (#1081)

    In on-demand sync mode, the live query collection was being marked as ready before
    the subset data finished loading. This caused useLiveQuery to return isReady=true
    with empty data, and useLiveSuspenseQuery to release suspense prematurely.

    The root cause was a race condition: the status:change listener in CollectionSubscriber
    was registered after the snapshot was triggered. If loadSubset resolved quickly
    (or synchronously), the loadingSubset status transition would be missed entirely,
    so trackLoadPromise was never called on the live query collection.

    Changes:

    1. Core fix - onStatusChange option: Added onStatusChange callback option to
      subscribeChanges(). The listener is registered BEFORE any snapshot is requested,
      guaranteeing no status transitions are missed. This replaces the error-prone pattern
      of manually deferring snapshots and registering listeners in the correct order.
    2. Ready state gating: updateLiveQueryStatus() now checks isLoadingSubset on the
      live query collection before marking it ready, and listens for loadingSubset:change
      to trigger the ready check when subset loading completes.

@tanstack/electric-db-collection@0.2.22

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/offline-transactions@1.0.8

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/powersync-db-collection@0.1.22

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/query-db-collection@1.0.14

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/react-db@0.1.62

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/rxdb-db-collection@0.1.50

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/solid-db@0.1.61

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/svelte-db@0.1.61

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/trailbase-db-collection@0.1.62

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@tanstack/vue-db@0.0.94

Patch Changes

  • Updated dependencies [c1247e8]:
    • @tanstack/db@0.5.18

@KyleAMathews KyleAMathews merged commit 0d60e01 into main Jan 9, 2026
@KyleAMathews KyleAMathews deleted the changeset-release/main branch January 9, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants