0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

323 commits

Author SHA1 Message Date
github-actions[bot]
12199722dc
ci: Version Packages (#12062)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-17 19:51:17 +02:00
chungyoung kim
1fee0443db
fix(query-core): clear mutations before notifying subscribers (#11470)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-17 19:46:13 +02:00
JeongHoon
c20886163a
fix(react-query): retry queries with falsy errors on mount (#11328)
* fix(react-query): retry queries with falsy errors on mount

* refactor(react-query): keep throwOnError constant

---------

Co-authored-by: TkDodo <office@dorfmeister.cc>
2026-10-17 19:26:30 +02:00
Jooyoung Shin
0addcd2a9a
fix(preact-query): retry on mount for falsy errors when throwOnError returns false (#11375)
* fix(preact-query): retry on mount for falsy errors when throwOnError returns false

`ensurePreventErrorBoundaryRetry` only evaluated a function-valued
`throwOnError` when `query.state.error` was truthy. For a query that
rejected with a falsy value (e.g. `undefined`), the callback was skipped
and the function itself was treated as truthy, so `retryOnMount` was
disabled even though `throwOnError` would have returned `false`.

Check `query.state.status === 'error'` instead so the callback runs for
every failed query. Ports #11328 to preact-query.

* refactor(preact-query): keep throwOnError constant

---------

Co-authored-by: TkDodo <office@dorfmeister.cc>
2026-10-17 19:23:55 +02:00
Seungtaek Oh
7ea0278558
fix(solid-query): subscribe to the new observer when the queryClient changes (#11920)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-17 19:10:13 +02:00
곽지욱
fce89ddf7a
fix(query-core): preserve null infinite page params (#11527)
fix(query-core): preserve null infinite page params
2026-10-17 18:54:51 +02:00
Wonsuk Choi
b61abc2033
fix(query-devtools/Devtools): apply the 'hideDisabledQueries' prop to the query list (#11638) 2026-10-17 18:51:43 +02:00
Wonsuk Choi
fc3a3848f2
fix({preact,solid,svelte,angular-query-experimental}): switch to 'export type *' for type-only re-exports (#11251)
* fix({preact,solid,svelte,angular-query-experimental}): switch to 'export type *' for type-only re-exports

* chore(.changeset/export-type-star-adapters): trim redundant PR cross-reference from changeset body
2026-10-17 18:51:10 +02:00
Derrick Marcey
c8f5eac9df
fix(query-devtools): expose pressed state on the boolean value toggle button (#11983)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-17 18:34:57 +02:00
Minh Vu
1cf6eb4e9e
fix(eslint-plugin-query): detect aliased React hook dependencies (#11889)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-17 18:24:06 +02:00
Wonsuk Choi
a10839824c
fix(react-query*): declare '@types/react' as an optional peer dependency (#11728)
* fix(react-query*): declare '@types/react' as a peer dependency like 'react-query-devtools'

* fix(react-query*): mark '@types/react' as an optional peer dependency
2026-10-17 18:07:05 +02:00
Wonsuk Choi
a5f1b092bb
refactor(eslint-plugin-query/exhaustive-deps): remove the unused 'fixable' from the rule metadata (#12044) 2026-10-17 18:02:55 +02:00
Wonsuk Choi
0992a92914
fix(react-query-devtools): create the devtools instance lazily with 'useState' initializer instead of on every render (#11722) 2026-10-17 18:02:24 +02:00
Wonsuk Choi
2bb82dfd23
fix(svelte-query/HydrationBoundary): make 'options' and 'queryClient' props optional (#12030) 2026-10-17 18:01:46 +02:00
Paul Nguyen
2ce51902de
fix(preact-query): do not go into optimistic fetching state when not subscribed (#11259)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-17 17:42:13 +02:00
github-actions[bot]
ee47993724
ci: Version Packages (#11998)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-15 09:50:17 +02:00
Sviat Barbutsa
0f15bc925d
fix(query-core): preserve union narrowing in setQueryData updaters (#11935)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-15 09:36:14 +02:00
Dami Oyeniyi
67705fd6ad
fix(vue-query-devtools): update client when prop changes (#11413) 2026-10-12 21:59:13 +02:00
Max Freedom Pollard
ed4d849731
fix(query-persist-client-core/createPersister): await 'storage.setItem' when persisting a query (#11410) 2026-10-12 21:54:43 +02:00
github-actions[bot]
b699b52d60
ci: Version Packages (#11849)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-11 21:32:27 +02:00
Jovi De Croock
a94c7caeec
feat(preact-query*): support Preact v11 (#11711)
* feat(preact-query*): support Preact v11

* fix(preact-query*): pass an initial value to 'useRef' and flush deferred unmount effect cleanups in tests for Preact v11

* chore(preact-query*): develop and test against Preact 11

Bump the preact catalog and the preact example to ^11.0.1, and
preact-render-to-string to ^6.8.0 (Preact 11 peers on >=6.7.0).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-11 18:17:07 +01:00
Kirby
69e114aecf
fix(vue-query): export MutationResult type (#11796)
`UseMutationReturnType` uses `MutationResult` as the default for its
`TResult` parameter, but the alias was not exported. Projects that emit
declarations could not name the inferred return type of a `useMutation`
wrapper and failed with TS2883. Export it from the package root.

Fixes #11769

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Ciarán Curley <ciaran.curley.11.11@gmail.com>
2026-10-09 12:17:10 +01:00
Tiago Vilas Boas
03e8c3955d
fix(query-core): start queued scoped mutations while the window is not focused 🤖🤖🤖 (#11679)
fix(query-core): start queued scoped mutations while the window is not focused

A mutation queued behind another one in the same scope is started later
through retryer.continue(), which only resumes when canContinue() is true.
canContinue() requires the window to be focused, so with an unfocused tab
the next mutation stayed paused until the window got focus again.

Resume the initial start pause with canStart() instead, which is the same
check used to start the retryer right away. Retry pauses still use
canContinue().

Fixes #11642

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-03 20:25:15 +02:00
github-actions[bot]
29859ae60c
ci: Version Packages (#11806)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-02 12:02:10 +02:00
Ciarán Curley
ec060b6f74
fix(query-devtools): isolate signals on devtools instances (#11799)
* fix(query-devtools): isolate mounted devtools instances

* refactor(query-devtools): encapsulate instance cache subscriptions

* refactor(query-devtools): inline provider state with explicit interfaces

* refactor(query-devtools): separate contexts and providers

* chore: update query devtools
2026-10-02 11:57:30 +02:00
github-actions[bot]
d4033eb1e5
ci: Version Packages (#11651)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-26 13:53:37 +10:00
Lachlan Collins
5279b05211
chore(deps): update Vite from v6 to v8 (#11650)
* chore(deps): update Vite from v6 to v8

* Fix angular, vue-devtools

* Fix vue-devtools

* Fix knip, remove @tanstack/vite-config

* Update eslint config

* Disable false eslint errors

* Fix remaining errors

* Fix knip, dedupe esbuild

* Add changeset
2026-09-26 12:23:02 +10:00
github-actions[bot]
fe053bf8e9
ci: Version Packages (#11612)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-26 10:13:58 +10:00
Lachlan Collins
a0ee654cd8
chore(angular-query): migrate to tsdown (#11649)
* chore(angular-query): migrate to tsdown

* Add changeset

* Fix types

* Fix attw
2026-09-26 09:59:39 +10:00
Lachlan Collins
d86ac36663
chore(query-devtools): update dependencies (#11648)
* chore(query-devtools): update dependencies

* Add changeset

* Fix build
2026-09-26 08:45:38 +10:00
Lachlan Collins
1c9693eac7
fix(codemods): update codemods build script (#11647)
* fix(codemods): update codemods build script

* Add changeset
2026-09-26 07:47:49 +10:00
Lachlan Collins
6ebffacbe7
fix(solid-query): useBaseQuery SSR cleanup (#11628)
* fix(solid-query): useBaseQuery SSR cleanup

* Add changeset
2026-09-26 06:18:00 +10:00
Wonsuk Choi
d03806572a
fix(svelte-query/{createQuery,queryOptions}): correct the overload selected for 'initialData' (#11592)
* fix(svelte-query/{createQuery,queryOptions}): correct the overload selected for 'initialData'

* test(svelte-query/queryOptions): use a non-literal condition instead of a wrapper function in the optional 'initialData' object test
2026-09-24 20:01:04 +10:00
Lachlan Collins
6a762c790f
ci: update to changesets v3 (#11583) 2026-09-23 07:12:56 +10:00
github-actions[bot]
8884f1a4d9
ci: Version Packages (#11582)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-22 15:35:37 +02:00
Wonsuk Choi
535cd61221
fix(svelte-query-devtools): update the devtools instance when options change after mount (#11009)
* fix(svelte-query-devtools): update the devtools instance when options change after mount

* test(svelte-query-devtools/Devtools): add missing 'setTheme' mock and coverage

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-09-22 20:46:19 +10:00
github-actions[bot]
413ba6e30b
ci: Version Packages (#11566)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-21 20:28:35 +10:00
Simon H
1490a4b2ae
fix: support async Svelte (#9810)
* fix: support async Svelte

Svelte 5 now supports async await in components. One behavior there is that when a component is created as part of a boundary that has pending async work, its `$effect`s will not run until that async work is done.

The way the code is written right now means you can end up in an infinite pending state: If you do `await someQuery.promise`, the `$effect` for the subscription will never run, and therefore the `await` will never resolve. This PR fixes it.

* lint

* fix

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-09-21 20:10:05 +10:00
Dami Oyeniyi
847f471e37
feat(svelte-query-devtools): add theme option (#10636)
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-09-21 20:09:29 +10:00
github-actions[bot]
e0f6c5542f
ci: Version Packages (#11525)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-21 11:29:33 +02:00
Lazizbek Ergashev
322152569e
fix(broadcast-client): don't overwrite an existing query's data on an incoming 'added' message (#11392)
* fix(broadcast-client): don't overwrite an existing query's data on an incoming 'added' message

* test(query-broadcast-client-experimental): drop test that duplicates existing 'added' build coverage
2026-09-21 10:50:04 +02:00
곽지욱
8a28904aac
fix(query-core): ignore stale query removals (#11524) 2026-09-17 10:22:10 +02:00
github-actions[bot]
c08f5766dd
ci: Version Packages (#11511)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-16 16:56:55 +02:00
곽지욱
8330b2f2d4
fix(query-core): handle plain objects with constructor fields (#11512)
fix(query-core): handle plain objects with constructor fields
2026-09-16 15:42:44 +02:00
곽지욱
3212966a36
fix(query-core): preserve null streamed query results (#11510)
fix(query-core): preserve null streamed query results
2026-09-16 11:36:14 +02:00
github-actions[bot]
19ccf2794b
ci: Version Packages (#11339)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-16 09:03:53 +02:00
곽지욱
4c7cdbb86d
fix(query-persist-client-core): restore falsy storage values (#11509)
fix(query-persist-client-core): restore falsy storage values
2026-09-16 08:16:20 +02:00
곽지욱
cbf77bf8e1
fix(query-core): reject longer partial array keys (#11502)
* fix(query-core): reject longer partial array keys

* test(query-core): clarify partial key regression
2026-09-15 20:24:59 +02:00
Dominik Dorfmeister 🔮
9567367dd9
fix: declare devtools dependencies and enforce strict workspace checks (#11501) 2026-09-15 20:03:10 +02:00
Ahmet Tınastepe
12027efd5c
fix(vue-query): widen 'queryOptions' input to match 'useQuery' (#11439)
* fix(vue-query): widen 'queryOptions' input to match 'useQuery'

* chore: generate-docs

* chore: changeset

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-09-15 09:00:40 +02:00