Open History to see the last commit
1---
2'@tanstack/solid-query': major
3---
4β
5feat: rewrite the adapter onto Solid 2.0's native async model. Query reads
6are now a single async computation (suspends into `<Loading>`, holds
7previous data through refetches, routes rejections to `<Errored>`,
8serializes settled values for streaming hydration) served through an
9auto-reconciling store projection β deep reads are fine-grained and item
10identity survives across fetches (keyed by the `reconcile` option, default
11`'id'`). Mutations ride Solid core's `action` primitive (transactional
12settle, optimistic overlays, callbacks inside the transaction). The
13observer notification/store layer is deleted β
14`QueryObserver`/`MutationObserver` remain as lifecycle/policy engines only.
15Hydration is single-channel and content-addressed (the Solid Router
16`query()` pattern): the provider serializes every query the request
17touches into Solid's hydration registry under `sq:<queryHash>` at
18fetch-dispatch time, each client hook primes the query cache from its own
19hash entry through query-core `hydrate()`, prefetched-never-rendered
20queries transfer, late mounts adopt past hydration end, and the
21provider-owned dehydration channel is deleted. Requires solid-js >=
222.0.0-rc.4 (hydration-end divergence takeover).
23β
24Breaking: `data` is non-optional on query results (reads suspend instead of
25returning `undefined`) and is a readonly store view; `mutateAsync` removed
26(`mutate` returns a promise); `reconcile` is now the reconciliation key for
27the data store (`string | (item => any) | null`, default `'id'` β the v5
28function form is gone, core auto-reconciles); `suspense` option removed
29(suspension is the model, boundaries are the control point); the `create*`
30runtime and `Create*` type aliases are removed, completing the deprecation
31from #8950 β `use*` is the only naming; `isInitialLoading` (deprecated
32alias of `isLoading`) is removed from query results. `deferStream` is now implemented
33(it was declared but unwired on the v6 line): it passes through to Solid's
34per-computation `deferStream` memo option.