Skip to content
Source
Sign inSign up
TanStack/db

Add SSR DbClient and live query identity #1564

Mergedtannerlinsleymerged 25 commits intomain fromrefs/pull/1564/headmerged by tannerlinsley

Showing 134 changed files with 110 additions and 0 deletions (loading 129).

x
0 of 134 viewed, 134 left
25 additions and 0 deletions.changeset/modern-dbs-hydrate.mdAdded
View file
@@ -0,0 +1,25 @@
+---
+'@tanstack/db': minor
+'@tanstack/react-db': minor
+'@tanstack/svelte-db': minor
+'@tanstack/react-router-with-db': minor
+'@tanstack/electric-db-collection': minor
+'@tanstack/query-db-collection': patch
+'@tanstack/powersync-db-collection': patch
+'@tanstack/rxdb-db-collection': patch
+'@tanstack/trailbase-db-collection': patch
+'@tanstack/db-sqlite-persistence-core': patch
+---
+​
+Add SSR through request-scoped `DbClient` instances, collection descriptors,
+explicit collection-row hydration, live-query result snapshots, adapter sync
+metadata, and React and Svelte descriptor resolution.
+​
+React live queries now derive identity from structured query IR. Opaque queries
+can provide `queryKey`; legacy dependency arrays and unkeyed opaque queries keep
+working with development warnings until 1.0.
+​
+Add TanStack Router integration that streams live queries discovered during a
+Suspense render as pending promises which resolve to ordered result snapshots.
+The browser starts normal source sync and atomically replaces the snapshot when
+its live result is ready.
69 additions and 0 deletions.github/SSR_RELEASE_PLAN.mdAdded
View file