@tanstack/solid-query#
6.0.0-rc.6#
Patch Changes#
#12613
5e44698- Require the stable Solid 2.0 release: thesolid-jsand@solidjs/webpeer ranges are now^2.0.0, and the packages build and test against@solidjs/vite-plugin3.0.0.#12034
6bab31b- fix: prevent cache notifications during a Solid transition landing from reading a query options memo that has no committed value.
6.0.0-rc.5#
Patch Changes#
#11751
8a13b15- Move off Solid's internalsharedConfigonto its public hydration API. The hydrating-mount checks readisHydrating(), the server cache stream writes throughgetHydrationWriter()gated onisHydratable()(so<NoHydration>is still respected), anduseQueryconsumes its streamed entry withtakeHydrationValue().sharedConfigis internal in Solid 2.0 and absent from the publishedsolid-jsdeclarations, so the previous imports no longer type-check.These APIs ship in Solid
2.0.0-rc.13, so thesolid-js/@solidjs/webpeer floor is now>=2.0.0-rc.13.#11543
cb63f07- Follow Solid 2.0.0-rc.9. The packages build with@solidjs/babel-plugin(the Solid 2.0 compiler, matching the rc.9 runtime's delegated-event contract) and test under vite 8; thesolid-js/@solidjs/webpeer floor is2.0.0-rc.9.useQuery's setup-time snapshots (the meta projection's seed, the mount counts) now read the cache directly instead of through the hook's version signal. Under hydration, priming writes that signal during setup, and a write made during the hydration pass is held: a computation in the pass that reads it β tracked or not β is served the pre-write value and replays when the pass ends. For the hook's own derived nodes that replay is the takeover; for the computation instantiating the component (a<Loading>boundary's children) it was a remount, re-creating the hydrated component as a client render and letting cache writes reach the DOM while the stream was still open.
6.0.0-rc.4#
Patch Changes#
#11449
fd3f1c9- fix: finish server renders that read a disabled query. Reading.datafrom auseQuerywithenabled: falseand nothing cached stopped an SSR render from ever completing β no bytes at all, since the data node was handed a promise that can never settle. That parking is intended client behaviour (the reader suspends into the nearest<Loading>until an enable, refetch or cache write revives the compute), but on the server there is no later: the render has to finish, and nothing will enable the query or write the cache before it does. A disabled query with no data now commits its idle state on the server, which is the contract the scalar metadata channel already honoured and the state the client hydrates to. Client behaviour is unchanged.#11517
09f2666- The single-flight consumer appliesX-Revalidateon responses that carried no slice for the query cache (no collector registered, a redirect leaving the app) instead of throwing on the missing payload β nothing is covered, so the declared scope is swept in full. The header's three states are three scopes: absent leaves the cache alone, an empty declaration (revalidate: []) sweeps nothing, and the reserved key*(revalidate: '*') invalidates every query the payload did not cover.#11360
0e6ff54- fix: stop a mounted observer from re-creating and refetching a removed query. The read layer bumps its per-hook version signal on every cache event for its hash,removedincluded, and the recompute that followed calledqueryCache.build(), which put the entry the caller had just deleted straight back. The resurrection was not passive: the rebuilt entry also re-pointed the still-live observer, whose mount-fetch policy then refetched and repopulated the key, soremoveQueries()(andclear()) could not be made to stick while any hook observed the key.query()now reuses the entry it last read when the cache no longer holds that hash, and only builds when the hash is genuinely new, so a removal leaves the cache empty and fires no fetch, while the mounted reader holds its last value until options change or a real entry returns throughsetQueryData, a refetch or a later mount. This is the behavior of the other adapters, and of solid-query at 6.0.0-rc.0.
6.0.0-rc.3#
Patch Changes#
- #11394
f41ac71- SweepX-Revalidatekeys in the single-flight consumer. A mutation can declare its invalidation scope with Solid'sreload/redirectrevalidateoption; the flight payload covers what the server recomputed, and whatever a declared key matches beyond it (parameterized instances only the client holds, queries no loader owns) is now invalidated client-side β active queries refetch in the background, inactive ones are marked stale. Keys match by queryKey prefix, mirroring Solid Router's consumption of the same header.
6.0.0-rc.2#
Minor Changes#
#11326
72f8185- SSR lifecycle utilities: newdehydrateSettledawaits in-flight queries before dehydrating so streamed HTML carries settled data;QueryClientProvidertears the client down after server render disposal (cancelQueries+clear, preventing cross-request leaks) and dehydration now respectsdefaultOptions.dehydrate.shouldDehydrateQueryfiltering.#11326
72f8185- Built-in single-flight consumer:QueryClientProvidernow subscribes the query cache's slice of Solid's multi-source single-flight channel under the exportedFLIGHT_DATA_SOURCEid ("sq"). Mutation responses carrying that slice β aDehydratedStateproduced by a server collector registered withregisterFlightDataSource(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/webrelease following 2.0.0-rc.4 (the named-source single-flight protocol).
Patch Changes#
#11325
209f9f5- fix: scope useMutation's mutation-cache subscription to the flight. The hook subscribed at mount with a bare reactiveclient()read (tripping Solid's STRICT_READ_UNTRACKED dev diagnostic) and held the subscription for its whole life even though the listener only matters while a mutation is in flight. The subscription now starts inrunagainst the same client the mutation is built on and ends at settle: nothing reactive is read at setup, the listener and the mutation can never sit on different clients, and idle hooks hold no cache subscription.#11326
72f8185- Require solid-js and @solidjs/web 2.0.0-rc.6+. rc.6 ships the named flight-data source API the single-flight consumer uses, plus the async settle fix the adapter depends on (rc.5's settle-walk regression breaks query hydration).
6.0.0-rc.1#
Major Changes#
#11308
c809e09- feat: rewrite the adapter onto Solid 2.0's native async model. Query reads are now a single async computation (suspends into<Loading>, holds previous data through refetches, routes rejections to<Errored>, serializes settled values for streaming hydration) served through an auto-reconciling store projection β deep reads are fine-grained and item identity survives across fetches (keyed by thereconcileoption, default'id'). Mutations ride Solid core'sactionprimitive (transactional settle, optimistic overlays, callbacks inside the transaction). The observer notification/store layer is deleted βQueryObserver/MutationObserverremain as lifecycle/policy engines only. Hydration is single-channel and content-addressed (the Solid Routerquery()pattern): the provider serializes every query the request touches into Solid's hydration registry undersq:<queryHash>at fetch-dispatch time, each client hook primes the query cache from its own hash entry through query-corehydrate(), prefetched-never-rendered queries transfer, late mounts adopt past hydration end, and the provider-owned dehydration channel is deleted. Requires solid-js >= 2.0.0-rc.4 (hydration-end divergence takeover).Breaking:
datais non-optional on query results (reads suspend instead of returningundefined) and is a readonly store view;mutateAsyncremoved (mutatereturns a promise);reconcileis now the reconciliation key for the data store (string | (item => any) | null, default'id'β the v5 function form is gone, core auto-reconciles);suspenseoption removed (suspension is the model, boundaries are the control point); thecreate*runtime andCreate*type aliases are removed, completing the deprecation from #8950 βuse*is the only naming;isInitialLoading(deprecated alias ofisLoading) is removed from query results.deferStreamis now implemented (it was declared but unwired on the v6 line): it passes through to Solid's per-computationdeferStreammemo option.
6.0.0-rc.0#
Patch Changes#
6.0.0-beta.8#
Patch Changes#
#11168
67c8179- chore: upgrade to solid v2 beta 33.@tanstack/solid-querynow requires solid-js >= 2.0.0-beta.33 (peer range floor raised): the provider-owned hydration channel depends on beta.33'snormalizeIteratorbuffered-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.#11168
67c8179- 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.QueryClientProviderstreams dehydrated cache entries (query-coredehydrate()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-corehydrate()(newer-wins) as they arrive, attaching each hydrated component's observer as soon as its entry is primed. The vestigial per-observer-resulthydrationDatacopy is no longer serialized.
6.0.0-beta.7#
Patch Changes#
6.0.0-beta.6#
Patch Changes#
6.0.0-beta.5#
Patch Changes#
6.0.0-beta.4#
Patch Changes#
- chore: bump vite-plugin-solid next.5 (#10516)
6.0.0-beta.3#
Patch Changes#
6.0.0-alpha.2#
Patch Changes#
- refactor: solid 2 reactivity compliance (#10316)
6.0.0-alpha.1#
Patch Changes#
- chore: bumps solid v2 to beta.4 (#10307)
6.0.0-alpha.0#
Major Changes#
- Support Solid 2.0 (#10272)
5.107.1#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.107.1
5.107.0#
Patch Changes#
- Updated dependencies [
b6add89]:- @tanstack/query-core@5.107.0
5.106.1#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.106.1
5.106.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.106.0
5.105.3#
Patch Changes#
5.105.2#
Patch Changes#
- #12480
8d0dc27- Excludestatusfrom the filters accepted byQueryClient.isMutating,useIsMutating, andinjectIsMutating. These APIs always count mutations withstatus: 'pending'. - Updated dependencies [
2ee2fd9,8d0dc27,e69cac6,f2215d2,86e7957,b6576b3,af0e0ef,05d9b6a]:- @tanstack/query-core@5.105.2
5.105.1#
Patch Changes#
#11373
7ccba6e- fix({react,preact,angular,solid,vue}-query/infiniteQueryOptions): correct the overload selected for a possibly-undefined 'initialData'#11595
b9f369a- fix(solid-query/{queryOptions,useQuery}): correct the overload selected for 'initialData'#12390
18e54bf- ExcludefetchStatusfrom the filters accepted byQueryClient.isFetching,useIsFetching, andinjectIsFetching. These APIs always count queries withfetchStatus: 'fetching'.Updated dependencies [
6f8a48d,18e54bf]:- @tanstack/query-core@5.105.1
5.105.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.105.0
5.104.5#
Patch Changes#
- Updated dependencies [
f608f93]:- @tanstack/query-core@5.104.5
5.104.4#
Patch Changes#
#11251
fc3a384- fix({preact,solid,svelte,angular-query-experimental}): switch to 'export type *' for type-only re-exports#11920
7ea0278- fix(solid-query): subscribe to the new observer when thequeryClientpassed touseQuerychangesUpdated dependencies [
1fee044,fce89dd]:- @tanstack/query-core@5.104.4
5.104.3#
Patch Changes#
- Updated dependencies [
0f15bc9]:- @tanstack/query-core@5.104.3
5.104.2#
Patch Changes#
- Updated dependencies [
03e8c39]:- @tanstack/query-core@5.104.2
5.104.1#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.104.1
5.104.0#
Patch Changes#
- Updated dependencies [
5279b05]:- @tanstack/query-core@5.104.0
5.103.3#
Patch Changes#
- #11628
6ebffac- fix: switch SSR cleanup property to address Astro crash - Updated dependencies []:
- @tanstack/query-core@5.103.3
5.103.2#
Patch Changes#
- Updated dependencies [
8a28904]:- @tanstack/query-core@5.103.2
5.103.1#
Patch Changes#
5.103.0#
Patch Changes#
5.102.8#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.102.8
5.102.7#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.102.7
5.102.6#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.102.6
5.102.5#
Patch Changes#
- Updated dependencies [
578e5c2]:- @tanstack/query-core@5.102.5
5.102.4#
Patch Changes#
- Updated dependencies [
a05df6a]:- @tanstack/query-core@5.102.4
5.102.3#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.102.3
5.102.2#
Patch Changes#
- Updated dependencies [
80fbf73]:- @tanstack/query-core@5.102.2
5.102.1#
Patch Changes#
- Updated dependencies [
134890d]:- @tanstack/query-core@5.102.1
5.102.0#
Patch Changes#
#10373
6e3d521- fix(types): propagate generic type parameters touseMutationStateselect callback#11224
294d4e6- FixqueryOptionsandinfiniteQueryOptionsreturn types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols.#8737
2215bb0- fix: make mutation variables optional whenundefined extends TVariables#11221
1ef4208- Remove experimental render-time prefetching and thepromiseproperty from query results.#10571
47d49d3- Resolve the query client context outside reactive memo callbacks.Updated dependencies [
34f7cee,b4368c4,5bb089d,ba4650c,294d4e6,1f631b3,01a02bf,18c1c1e,5448063,2215bb0,1ef4208,5981771,4a9bef6,bef4bc7,9656dc4,326aaf1,3e83601,c6fc17c]:- @tanstack/query-core@5.102.0
5.101.4#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.101.4
5.101.3#
Patch Changes#
- Updated dependencies [
7e3c822]:- @tanstack/query-core@5.101.3
5.101.2#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.101.2
5.101.1#
Patch Changes#
- Updated dependencies [
9eff92e]:- @tanstack/query-core@5.101.1
5.101.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.101.0
5.100.14#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.100.14
5.100.13#
Patch Changes#
- Updated dependencies [
d423168]:- @tanstack/query-core@5.100.13
5.100.12#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.100.12
5.100.11#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.100.11
5.100.10#
Patch Changes#
fix(query-devtools): remove experimentalDts to prevent solid-js type leak (#10694)
Updated dependencies []:
- @tanstack/query-core@5.100.10
5.100.9#
Patch Changes#
- Updated dependencies [
fcee7bd]:- @tanstack/query-core@5.100.9
5.100.8#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.100.8
5.100.7#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.100.7
5.100.6#
Patch Changes#
refactor(solid-query): remove 'Solid' prefix from 'SolidQueryOptions', 'SolidInfiniteQueryOptions', and 'SolidMutationOptions' (#10500)
Updated dependencies []:
- @tanstack/query-core@5.100.6
5.100.5#
Patch Changes#
- Updated dependencies [
a53ef97]:- @tanstack/query-core@5.100.5
5.100.4#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.100.4
5.100.3#
Patch Changes#
- Updated dependencies [
f85d825]:- @tanstack/query-core@5.100.3
5.100.2#
Patch Changes#
5.100.1#
Patch Changes#
- Updated dependencies [
1bb0d23]:- @tanstack/query-core@5.100.1
5.100.0#
Patch Changes#
- Updated dependencies [
6540a41]:- @tanstack/query-core@5.100.0
5.99.2#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.99.2
5.99.1#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.99.1
5.99.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.99.0
5.98.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.98.0
5.97.0#
Patch Changes#
- Updated dependencies [
2bfb12c]:- @tanstack/query-core@5.97.0
5.96.2#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.96.2
5.96.1#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.96.1
5.96.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.96.0
5.95.2#
Patch Changes#
- Updated dependencies [
cd5a35b]:- @tanstack/query-core@5.95.2
5.95.1#
Patch Changes#
- Updated dependencies [
1f1775c]:- @tanstack/query-core@5.95.1
5.95.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/query-core@5.95.0
5.94.5#
Patch Changes#
fix(*): resolve issue about excluded build directory (#10312)
Updated dependencies [
4b6536d]:- @tanstack/query-core@5.94.5
5.94.4#
Patch Changes#
5.91.4#
Patch Changes#
- fix: stop node types from leaking into browser (#10302)
5.91.3#
Patch Changes#
fix(streamedQuery): maintain error state on reset refetch with initialData defined (#10287)
Updated dependencies [
248975e]:- @tanstack/query-core@5.91.2
5.91.2#
Patch Changes#
fix(core): cancel paused initial fetch when last observer unsubscribes (#10291)
Updated dependencies [
a89aab9]:- @tanstack/query-core@5.91.1
5.91.1#
Patch Changes#
- Updated dependencies [
6fa901b]:- @tanstack/query-core@5.91.0
5.91.0#
Minor Changes#
- feat(solid-query): add 'mutationOptions' (#10138)
5.90.26#
Patch Changes#
- fix(solid-router): should only have useQueryClient/useIsRestoring due to context read (#10262)
5.90.25#
Patch Changes#
- fix: allow both create/use for solid (#10260)
5.90.24#
Patch Changes#
- fix: forward generic parameters in deprecated type aliases (#10093)
5.90.23#
Patch Changes#
- Updated dependencies [
e7258c5]:- @tanstack/query-core@5.90.20
5.90.22#
Patch Changes#
- Updated dependencies [
53fc74e]:- @tanstack/query-core@5.90.19
5.90.21#
Patch Changes#
- Updated dependencies [
dea1614]:- @tanstack/query-core@5.90.18
5.90.20#
Patch Changes#
- Updated dependencies [
269351b]:- @tanstack/query-core@5.90.17
5.90.19#
Patch Changes#
- Updated dependencies [
7f47906]:- @tanstack/query-core@5.90.16
5.90.18#
Patch Changes#
- Updated dependencies [
fccef79]:- @tanstack/query-core@5.90.15
5.90.17#
Patch Changes#
- Updated dependencies [
d576092]:- @tanstack/query-core@5.90.14
5.90.16#
Patch Changes#
- Updated dependencies [
4a0a78a]:- @tanstack/query-core@5.90.13
5.90.15#
Patch Changes#
- Updated dependencies [
72d8ac5]:- @tanstack/query-core@5.90.12
5.90.14#
Patch Changes#
- Updated dependencies [
c01b150]:- @tanstack/query-core@5.90.11
5.90.13#
Patch Changes#
5.90.12#
Patch Changes#
- Updated dependencies [
08b211f]:- @tanstack/query-core@5.90.9
5.90.11#
Patch Changes#
- Updated dependencies [
c0ec9fe]:- @tanstack/query-core@5.90.8
5.90.10#
Patch Changes#
- Updated dependencies [
b4cd121]:- @tanstack/query-core@5.90.7
5.90.9#
Patch Changes#
- Skip errors if returned data is undefined (#9841)
5.90.8#
Patch Changes#
- Updated dependencies [
1638c02]:- @tanstack/query-core@5.90.6
5.90.7#
Patch Changes#
- fix(solid-query): enable experimental_prefetchInRender by default for⦠(#9822)
5.90.6#
Patch Changes#
- Updated dependencies [
e42ddfe]:- @tanstack/query-core@5.90.5
5.90.5#
Patch Changes#
- Updated dependencies [
20ef922]:- @tanstack/query-core@5.90.4
5.90.4#
Patch Changes#
- Updated dependencies [
4e1c433]:- @tanstack/query-core@5.90.3