Skip to content
Source
Sign inSign up
TanStack/query

fix(solid-query): consume hydration data client-side via a provider-owned streaming channel #11168

Mergedryansolid(GitHub profile, opens in a new tab)merged 8 commits intosolid-query-v6-pre fromrefs/pull/11168/headmerged by birkskyum(GitHub profile, opens in a new tab) View on GitHub

Showing 27 changed files with 14 additions and 2 deletions (loading 23).

x
0 of 27 viewed, 27 left
7 additions and 0 deletions.changeset/solid-beta-33-upgrade.mdAdded
View file
@@ -0,0 +1,7 @@
+---
+'@tanstack/solid-query': patch
+'@tanstack/solid-query-devtools': patch
+'@tanstack/solid-query-persist-client': patch
+---
+​
+chore: upgrade to solid v2 beta 33. `@tanstack/solid-query` now requires solid-js >= 2.0.0-beta.33 (peer range floor raised): the provider-owned hydration channel depends on beta.33's `normalizeIterator` buffered-replay conflation fix — on beta.32 and earlier, hydration that begins after multiple stream chunks have arrived silently drops later channel yields, leaving queries never primed and their components frozen.
5 additions and 0 deletions.changeset/solid-hydration-data-consumption.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/solid-query': patch
+---
+​
+fix: prime the query cache during hydration through a provider-owned dehydration channel, so SSR-fetched queries come up warm instead of refetching on mount. `QueryClientProvider` streams dehydrated cache entries (query-core `dehydrate()` shapes) as each query settles during SSR — entries ride the same flush as the content that awaited them — and applies them on the client via query-core `hydrate()` (newer-wins) as they arrive, attaching each hydrated component's observer as soon as its entry is primed. The vestigial per-observer-result `hydrationData` copy is no longer serialized.
2 additions and 2 deletionsexamples/solid/astro/package.jsonModified
View file
@@ -18,8 +18,8 @@
"@tanstack/solid-query": "^6.0.0-beta.7",
"@tanstack/solid-query-devtools": "^6.0.0-beta.7",
"astro": "^5.5.6",
- "@solidjs/web": "2.0.0-beta.29",
- "solid-js": "2.0.0-beta.29",
+ "@solidjs/web": "2.0.0-beta.33",
+ "solid-js": "2.0.0-beta.33",
"tailwindcss": "^3.4.7",
"typescript": "5.8.3"