Skip to content
Source
Sign inSign up
TanStack/query

WIP: Support Solid V2 now that its stable #12634

Draftbrenelz(GitHub profile, opens in a new tab)wants to merge 59 commits intomain fromrefs/pull/12634/headopened View on GitHub

Showing 163 changed files with 17 additions and 0 deletions (loading 159).

x
0 of 163 viewed, 163 left
5 additions and 0 deletions.changeset/pre/dehydrate-settled.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/solid-query': minor
+---
+​
+SSR lifecycle utilities: new `dehydrateSettled` awaits in-flight queries before dehydrating so streamed HTML carries settled data; `QueryClientProvider` tears the client down after server render disposal (`cancelQueries` + `clear`, preventing cross-request leaks) and dehydration now respects `defaultOptions.dehydrate.shouldDehydrateQuery` filtering.
7 additions and 0 deletions.changeset/pre/fifty-spoons-draw.mdAdded
View file
@@ -0,0 +1,7 @@
+---
+'@tanstack/solid-query-persist-client': patch
+'@tanstack/solid-query-devtools': patch
+'@tanstack/solid-query': patch
+---
+​
+chore: bumps solid v2 to beta.5
5 additions and 0 deletions.changeset/pre/flight-data-source.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/solid-query': minor
+---
+​
+Built-in single-flight consumer: `QueryClientProvider` now subscribes the query cache's slice of Solid's multi-source single-flight channel under the exported `FLIGHT_DATA_SOURCE` id (`"sq"`). Mutation responses carrying that slice — a `DehydratedState` produced by a server collector registered with `registerFlightDataSource(FLIGHT_DATA_SOURCE, hook)` — hydrate the provider's client before the mutation's promise resolves, so every mounted query on those keys updates with no follow-up refetches and no per-app wiring. Subscribing is inert when no server collector exists. Requires the `@solidjs/web` release following 2.0.0-rc.4 (the named-source single-flight protocol).
.changeset/pre/flight-revalidate-sweep.mdAdded
View file
Loading the diff
.changeset/pre/free-cities-hunt.mdAdded
View file
Loading the diff