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

5,624 commits

Author SHA1 Message Date
Lachlan Collins
5ad78fc4ad
docs: correct local relative links (#9947)
* docs: correct local relative links

* Update links

* Slight tweaks

* String
2025-12-05 22:39:25 +11:00
github-actions[bot]
9e8709eddb
ci: Version Packages (#9945) @tanstack/angular-query-experimental@5.90.16 @tanstack/query-async-storage-persister@5.90.14 @tanstack/query-broadcast-client-experimental@5.90.12 @tanstack/query-core@5.90.12 @tanstack/query-persist-client-core@5.91.11 @tanstack/query-sync-storage-persister@5.90.14 @tanstack/react-query-persist-client@5.90.14 @tanstack/react-query@5.90.12 @tanstack/solid-query-persist-client@5.90.15 @tanstack/solid-query@5.90.15 @tanstack/svelte-query-persist-client@6.0.12 @tanstack/svelte-query@6.0.10 @tanstack/vue-query@5.92.1
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-04 12:12:48 +01:00
Dominik Dorfmeister
72d8ac5c59
fix: update react and nextJs (#9944)
* fix: update react and nextJs

and add a nextJs16 integration test

* ci: apply automated fixes

* oops

* Update patch versions for React and TanStack packages

Updated the patch versions for various React and TanStack packages.

* fix: streamline dependencies

* bundle size

* fix lock file

* fix: update react in example

* skip test for now

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-04 10:10:29 +01:00
Lachlan Collins
7e99b885ff
docs: fix sidebar links (#9933) 2025-11-30 08:08:25 +11:00
Lachlan Collins
7f4939c624
ci: sync config between projects (#9931)
* ci: update typedoc

* Remove old check
2025-11-29 19:55:40 +11:00
Lachlan Collins
b7b452e407
ci: remove @tanstack/publish-config (#9930)
* ci: remove @tanstack/publish-config

* Update imports
2025-11-29 16:22:35 +11:00
Lachlan Collins
73eb629169
ci(changesets): enable experimental peerDependents option (#9928)
* ci(changesets): enable experimental peerDependents option

* Fix typescript-eslint versions
2025-11-28 09:03:49 +11:00
Lachlan Collins
aba3260e4d
ci(changesets): disable auto-merging (#9918)
* ci(changesets): disable auto-merging

* Fix knip
2025-11-27 11:10:12 +11:00
Damian Osipiuk
1f0ec12229
chore: bring back proper devtools version (#9917) @tanstack/vue-query-devtools@6.1.2 @tanstack/vue-query@5.92.0
* chore: bring back proper devtools version

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-26 17:29:58 +01:00
github-actions[bot]
c7510cc6d6
ci: Version Packages (#9916)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-26 16:19:34 +00:00
Damian Osipiuk
758414fcec
feat(vue-query): allow options getters in additional composables (#9914) 2025-11-26 17:18:09 +01:00
Stanyslas Bres
8b387341eb
docs(vue): change query keys example to typescript (#9907)
* docs(vue): change query keys example to typescript

This example is written in Javascript, and the fact that `todoId` is a `Ref` is a bit hard to identify.

I propose to migrate this example to Typescript, with an import to Vue's Ref type and make the parameter to the example composable explicit.

There are more docs that could be improved this way, if it suits you I could also make the changes to these docs :)

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-26 13:28:17 +01:00
github-actions[bot]
6799395211
ci: Version Packages (#9911) @tanstack/angular-query-experimental@5.90.15 @tanstack/query-async-storage-persister@5.90.13 @tanstack/query-broadcast-client-experimental@5.90.11 @tanstack/query-core@5.90.11 @tanstack/query-persist-client-core@5.91.10 @tanstack/query-sync-storage-persister@5.90.13 @tanstack/react-query-persist-client@5.90.13 @tanstack/react-query@5.90.11 @tanstack/solid-query-persist-client@5.90.14 @tanstack/solid-query@5.90.14 @tanstack/svelte-query-persist-client@6.0.11 @tanstack/svelte-query@6.0.9 @tanstack/vue-query@5.91.4
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-25 16:41:41 +00:00
Olivier Beaulieu
c01b150e36
fix(useQueries): Prevent infinite render loops when useSuspenseQueries has duplicate queryKeys (#9886)
* Prevent infinite render loops when useSuspenseQueries has duplicate queryKeys

* changeset

* tweaks

* smaller diff

* lint

* lint

* remove newline

* remove non-null assertion

* ci: apply automated fixes

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 17:35:22 +01:00
github-actions[bot]
46ebef2e67
ci: Version Packages (#9909) @tanstack/vue-query@5.91.3
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-25 12:21:46 +00:00
zhong666
3ce7910b3f
fix(vue-query): include TPageParam in enabled of InfiniteQueryObserverOptions (#9898)
* fix(vue): include TPageParam in enabled of InfiniteQueryObserverOptions

* chore: add changeset
2025-11-25 13:18:29 +01:00
github-actions[bot]
025358880f
ci: Version Packages (#9908) @tanstack/angular-query-experimental@5.90.14 @tanstack/query-devtools@5.91.1 @tanstack/react-query-devtools@5.91.1 @tanstack/solid-query-devtools@5.91.1 @tanstack/svelte-query-devtools@6.0.2 @tanstack/vue-query-devtools@6.1.1
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-25 10:50:04 +00:00
Matthew Costabile
b261b6f29e
fix(devtools): Improve devtools accessibility by adding aria attributes, using semantic components and field labels (#9806)
* update devtool a11y

* changeset

* ci: apply automated fixes

* Update packages/query-devtools/src/Devtools.tsx

* unnecessary role

* label -> input

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 11:44:47 +01:00
Mateusz Burzyński
c9bc6002ad
chore: use better Thrower declaration in tests (#9884)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-11-23 10:55:09 +01:00
Wonsuk Choi
ae47807851
test(react-query-persist-client/PersistQueryClientProvider): switch to fake timers, replace 'await' with 'advanceTimersByTimeAsync', and use 'sleep().then()' pattern (#9859) @tanstack/angular-query-experimental@5.90.13 @tanstack/query-devtools@5.91.0 @tanstack/react-query-devtools@5.91.0 @tanstack/solid-query-devtools@5.91.0 @tanstack/svelte-query-devtools@6.0.1 @tanstack/vue-query-devtools@6.1.0
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-11-22 14:59:26 +09:00
github-actions[bot]
18febbd79a
ci: Version Packages (#9890)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-21 10:46:41 +00:00
Damian Osipiuk
0e9d5b5652
feat(devtools): allow passing a theme via prop (#9887) 2025-11-21 11:45:27 +01:00
github-actions[bot]
66a194e6b1
ci: Version Packages (#9879) @tanstack/angular-query-experimental@5.90.12 @tanstack/query-async-storage-persister@5.90.12 @tanstack/query-broadcast-client-experimental@5.90.10 @tanstack/query-core@5.90.10 @tanstack/query-persist-client-core@5.91.9 @tanstack/query-sync-storage-persister@5.90.12 @tanstack/react-query-persist-client@5.90.12 @tanstack/react-query@5.90.10 @tanstack/solid-query-persist-client@5.90.13 @tanstack/solid-query@5.90.13 @tanstack/svelte-query-persist-client@6.0.10 @tanstack/svelte-query@6.0.8 @tanstack/vue-query@5.91.2
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-16 18:27:14 +00:00
ahmethos
eb559a66dc
fix(streamedQuery): fall back to initialValue when stream yields no values (#9876)
* fix(streamedQuery): fall back to initialValue when stream yields no values

Add failing test for empty streams and update implementation to avoid returning undefined.
Includes changeset for patch release.

* chore: address review nitpicks (JSDoc + test cleanup)

* docs: note that initialValue is returned when the stream yields no values

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-11-16 19:19:44 +01:00
Dominik Dorfmeister
8e2e174e9f
fix(types): do not drop readonly for partial QueryFilter matching (#9878)
* fix(types): do not drop readonly for partial QueryFilter matching

* fix(types): allow QueryFilters union with different lengths

* Create orange-boxes-visit.md

* Apply suggestion from @TkDodo
2025-11-16 19:17:56 +01:00
github-actions[bot]
62263251d6
ci: Version Packages (#9873) @tanstack/angular-query-experimental@5.90.11 @tanstack/query-async-storage-persister@5.90.11 @tanstack/query-broadcast-client-experimental@5.90.9 @tanstack/query-core@5.90.9 @tanstack/query-persist-client-core@5.91.8 @tanstack/query-sync-storage-persister@5.90.11 @tanstack/react-query-persist-client@5.90.11 @tanstack/react-query@5.90.9 @tanstack/solid-query-persist-client@5.90.12 @tanstack/solid-query@5.90.12 @tanstack/svelte-query-persist-client@6.0.9 @tanstack/svelte-query@6.0.7 @tanstack/vue-query@5.91.1
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-14 08:16:47 +00:00
Dominik Dorfmeister
08b211f8aa
fix(types): do not drop readonly for partial QueryFilter matching (#9872)
* fix(types): do not drop readonly for partial QueryFilter matching

* Create new-keys-raise.md
2025-11-14 09:14:30 +01:00
github-actions[bot]
35deec3e79
ci: Version Packages (#9870) @tanstack/react-query-next-experimental@5.91.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 15:54:24 +00:00
Valentin Gurkov
7ed2d1661b
feat(react-query-next-experimental): support Next.js 16 (#9868)
* feat(react-query-next-experimental): support Next.js 16

* feat(react-query-next-experimental): support Next.js 16

* chore(query-example-nextjs-suspense-streaming): Add .gitignore, remove autogenerated file

* ci: apply automated fixes

* chore(query-example-nextjs-suspense-streaming): revert unintended tsconfig change

* chore(query-example-nextjs-suspense-streaming): use react 19.0 like the rest of the repo

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-13 16:44:34 +01:00
github-actions[bot]
d46d35cdc2
ci: Version Packages (#9867) @tanstack/angular-query-experimental@5.90.10 @tanstack/query-async-storage-persister@5.90.10 @tanstack/query-broadcast-client-experimental@5.90.8 @tanstack/query-core@5.90.8 @tanstack/query-persist-client-core@5.91.7 @tanstack/query-sync-storage-persister@5.90.10 @tanstack/react-query-persist-client@5.90.10 @tanstack/react-query@5.90.8 @tanstack/solid-query-persist-client@5.90.11 @tanstack/solid-query@5.90.11 @tanstack/svelte-query-persist-client@6.0.8 @tanstack/svelte-query@6.0.6 @tanstack/vue-query-devtools@6.0.0 @tanstack/vue-query@5.91.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-12 12:37:27 +00:00
Damian Osipiuk
b2bd79d0a6
feat(vue-query): support useQuery options getter (#9866) 2025-11-12 13:35:04 +01:00
github-actions[bot]
f7c952613a
ci: Version Packages (#9854)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-08 18:17:47 +00:00
Josiah Nunemaker
c0ec9fe0d1
fix(query-core): allow partial query keys in QueryFilters (#9686)
* fix(query-core): allow partial query keys in `QueryFilters` and `MutationFilters`

Add a type to match tuple prefixes to match partial query keys in `QueryFilters` and `MutationFilters`

Fixes tanstack/query#9680

* test(query-core): add tests for partial QueryKey matching for `QueryFilters`

add tests to verify that the new partial QueryKey matching for `QueryFilters` does match partial query keys, and also doesn't allow invalid query keys.

* fix(query-core): move tuple prefix helper types to utils.ts

prevent tuple helper types from getting exported, and showing up in the public api

* Add changeset

* ci: apply automated fixes

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-08 17:53:09 +01:00
Wonsuk Choi
7bc9543928
test(react-query-persist-client/use-queries-with-persist): switch to fake timers, replace 'waitFor' with 'vi.advanceTimersByTimeAsync', and replace 'setTimeout' with 'sleep' (#9850) 2025-11-08 17:51:03 +01:00
AhmadKamal049
2eb772cbd5
docs: Rename Todo component to BlogPost (#9853) 2025-11-08 17:50:06 +01:00
Sarah
7783a7ae49
docs: add community resources page (#9831)
* add community resources page

* update link for blog posts

* update community resource links

* rm vue community section

* update old links

* fix community resource link
2025-11-06 12:59:56 +01:00
WuMingDao
ddac1299b2
docs: fix grammar issue in CONTRIBUTING.md (#9849)
* docs: fix grammar issue in CONTRIBUTING.md

* update
2025-11-06 12:57:20 +01:00
github-actions[bot]
ea0ab4da43
ci: Version Packages (#9848) @tanstack/angular-query-experimental@5.90.9 @tanstack/query-async-storage-persister@5.90.9 @tanstack/query-broadcast-client-experimental@5.90.7 @tanstack/query-core@5.90.7 @tanstack/query-persist-client-core@5.91.6 @tanstack/query-sync-storage-persister@5.90.9 @tanstack/react-query-persist-client@5.90.9 @tanstack/react-query@5.90.7 @tanstack/solid-query-persist-client@5.90.10 @tanstack/solid-query@5.90.10 @tanstack/svelte-query-persist-client@6.0.7 @tanstack/svelte-query@6.0.5 @tanstack/vue-query@5.90.7
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 15:48:14 +00:00
Dominik Dorfmeister
28f44e279a
chore: Update bundle size badges for React Query 2025-11-05 16:45:11 +01:00
Dominik Dorfmeister
b4cd121a39
fix(core): only attach .then and .catch onto a promise if it gets dehydrated (#9847)
* fix(core): only attach .then and .catch onto a promise if it gets dehydrated

* Fix promise handling in core for dehydrated states

Ensure .then and .catch are only attached to dehydrated promises.
2025-11-05 16:44:02 +01:00
github-actions[bot]
a5fca0e541
ci: Version Packages (#9842) @tanstack/solid-query@5.90.9
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-03 14:37:54 +00:00
Brenley Dueck
d537d2bab1
fix(solid-query): ignore error if data undefined so can redirect (#9841) 2025-11-03 15:21:09 +01:00
daninus14
40b296b43f
docs: Update query function to include page parameter (#9792)
the first example was broken, now it works!
2025-11-01 21:55:21 +01:00
Varun
411f030eb9
docs: improve skipToken refetch incompatibility warning (#9816)
docs: improve skipToken and refetch incompatibility warning

- Add detailed explanation of Missing queryFn error when using refetch() with skipToken
- Provide clear guidance to use enabled: false instead for manual refetching
- Systematic fix affects all frameworks (Vue, Angular, Solid) via inheritance

Fixes #7599
2025-11-01 19:32:11 +01:00
mkmlab-v2
f5363e29de
docs: Add useSuspenseQuery replacement rule for Solid docs (#9815)
Fixes #9654

Solid Query documentation incorrectly shows useSuspenseQuery which doesn't exist in Solid Query. Added replacement rules to convert useSuspenseQuery to useQuery and useSuspenseQueries to useQueries.

This aligns the documentation with the actual Solid Query API.

Co-authored-by: MKM Lab <mkmlab@example.com>
2025-11-01 19:31:13 +01:00
Varun
878782ba04
docs(solid-query): fix incorrect Vue.js code example in Suspense guide (#9813)
* docs(solid-query): fix incorrect Vue.js code example in Suspense guide

Replace Vue.js code example with proper SolidJS syntax in the Suspense documentation.
The example was using Vue's defineComponent and setup() instead of SolidJS patterns.

Fixes issue with non-existent useSuspenseQuery examples in Solid Query docs.

* fix: use idiomatic SolidJS pattern for Suspense

Remove unnecessary createEffect and rely on direct query.data access.
According to TanStack Query Solid docs, accessing query.data directly
inside a Suspense boundary automatically triggers suspension.

Addresses CodeRabbit AI feedback for proper SolidJS patterns.
2025-11-01 19:30:37 +01:00
autofix-ci[bot]
9ede44d25e
ci: apply automated fixes 2025-11-01 18:15:40 +00:00
Varun
571cf55cf1
docs: fix angular background fetching indicators replace rules (#9819)
docs(angular): add missing replace rules for background-fetching-indicators

- Add replace rules to convert React terminology to Angular equivalents
- Fixes useIsFetching -> injectIsFetching conversion in prose text
- Adds hook -> function terminology conversion
- Includes package name conversion for @tanstack/react-query
- Resolves Issue #9744
2025-11-01 19:14:44 +01:00
DongHyeonWon
14a032d820
docs(react-query): add react background retry pausing documentation for v5 (#9755)
* docs: add react background retry pausing documentation for v5

* docs: add background retry behavior to query-retries guide
2025-11-01 19:13:33 +01:00
Olexandr88
c578b3c648
docs: add a link to the stars badge (#9779)
Update README.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-11-01 19:09:42 +01:00