0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
Commit graph

5,036 commits

Author SHA1 Message Date
Fredrik Höglund
1bb0d23428
fix(query-core): fix hydration bugs for already resolved promises (#10444) 2026-04-23 15:54:30 +02:00
github-actions[bot]
ad517e5564
ci: Version Packages (#10567) release-2026-04-23-1319 @tanstack/angular-query-experimental@5.100.0 @tanstack/eslint-plugin-query@5.100.0 @tanstack/preact-query-devtools@5.100.0 @tanstack/preact-query-persist-client@5.100.0 @tanstack/preact-query@5.100.0 @tanstack/query-async-storage-persister@5.100.0 @tanstack/query-broadcast-client-experimental@5.100.0 @tanstack/query-core@5.100.0 @tanstack/query-devtools@5.100.0 @tanstack/query-persist-client-core@5.100.0 @tanstack/query-sync-storage-persister@5.100.0 @tanstack/react-query-devtools@5.100.0 @tanstack/react-query-next-experimental@5.100.0 @tanstack/react-query-persist-client@5.100.0 @tanstack/react-query@5.100.0 @tanstack/solid-query-devtools@5.100.0 @tanstack/solid-query-persist-client@5.100.0 @tanstack/solid-query@5.100.0 @tanstack/svelte-query-devtools@6.1.19 @tanstack/svelte-query-persist-client@6.1.19 @tanstack/svelte-query@6.1.19 @tanstack/vue-query-devtools@6.1.19 @tanstack/vue-query@5.100.0
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-23 15:15:00 +02:00
Dominik Dorfmeister 🔮
6540a4126b
feat(core): callback for retryOnMount (#10515)
* feat(core): callback for retryOnMount

* ci: apply automated fixes

* fix: vue

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-23 14:45:49 +02:00
Aleksei Kharitonov
61b97638e3
docs(eslint/no-unstable-deps): correct 'react' package name casing in examples (#10553)
fix(docs): correct import casing in no-unstable-deps examples
2026-04-23 20:08:15 +09:00
Wonsuk Choi
e2a945e4c8
test(angular-query-experimental/injectMutation): switch 'success' and 'reset' tests to '@Component' + 'render' pattern (#10566) 2026-04-23 17:54:11 +09:00
Wonsuk Choi
65f9eeb461
test(angular-query-experimental/injectQueries): add 'readonly' modifier to component fields for consistency with other render-pattern tests (#10564) 2026-04-23 15:32:13 +09:00
Wonsuk Choi
0f339c1c92
test(angular-query-experimental/injectQueries): switch 'isRestoring' test to '@Component' + 'render' pattern (#10563) 2026-04-23 15:12:43 +09:00
Wonsuk Choi
e236194f10
test(react-query/useQuery.promise): improve stability by isolating 'queryClient' per test and switching 'queryFn' to real 'sleep' (#10562)
* test(react-query/useQuery.promise): improve stability by isolating 'queryClient' per test and switching 'queryFn' to real 'sleep'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-23 13:44:10 +09:00
Wonsuk Choi
b1538fc6cb
test(query-persist-client-core/createPersister): lowercase 'Should' to 'should' in 'it' descriptions for consistency (#10560) 2026-04-23 10:11:00 +09:00
Jan Aagaard
7d881354ff
docs: Update the documentation for gcTime in setQueryData (#10559)
Clarified the behavior of gcTime in setQueryData.

https://bsky.app/profile/tkdodo.eu/post/3mk2z7ur7kc2m
2026-04-22 12:56:26 +02:00
Wonsuk Choi
e7de9090c8
test(angular-query-experimental/injectInfiniteQuery): switch main test to '@Component' + 'render' pattern (#10558) 2026-04-22 15:56:27 +09:00
Wonsuk Choi
0d2112c3e7
test(angular-query-experimental/injectIsMutating): switch main test to '@Component' + 'render' pattern (#10557) 2026-04-22 15:36:56 +09:00
Wonsuk Choi
f01b7ce6d3
test(angular-query-experimental/injectIsFetching): switch main test to '@Component' + 'render' pattern (#10556) 2026-04-22 14:44:53 +09:00
Wonsuk Choi
59efc40372
test(*): resolve 'require-await' warnings in test files (#10551) 2026-04-22 07:50:55 +09:00
Wonsuk Choi
cf8a765e7a
test(react-query/useQuery): rename 'throwOnError' callback parameter to 'err' to avoid 'no-shadow' with outer 'error' (#10550) 2026-04-22 02:32:50 +09:00
Wonsuk Choi
a65252663c
test(vue-query/queryClient): rename local 'queryKey' to 'key' to avoid 'no-shadow' with the 'queryKey' import (#10549) 2026-04-22 02:26:12 +09:00
Wonsuk Choi
eec2abefe5
test(query-persist-client-core/createPersister): fix typo 'persiste' to 'persist' and 'persistance' to 'persistence' (#10548) 2026-04-22 02:16:24 +09:00
Wonsuk Choi
fc8a6a9240
test(angular-query*): prefix 'it' descriptions with 'should' for consistency (#10547) 2026-04-22 01:59:06 +09:00
Wonsuk Choi
b79bb9283e
test(angular-query*): simplify 'TestBed' setup by removing redundant 'resetTestingModule' and leveraging provider merging (#10546) 2026-04-22 01:37:58 +09:00
Wonsuk Choi
ad3bc84682
test(angular-query-experimental/withDevtools): add test for 'No QueryClient found' throw when 'loadDevtools' is 'true' without a 'QueryClient' (#10544) 2026-04-22 00:18:27 +09:00
Wonsuk Choi
50d08dee1b
test(angular-query-experimental/injectQueries): remove duplicate 'render' providers already configured in 'beforeEach' (#10541) 2026-04-21 11:48:48 +09:00
Wonsuk Choi
646f04ef08
test(angular-query-persist-client/withPersistQueryClient): move 'effect' into 'constructor' to follow Angular convention (#10538) 2026-04-21 02:53:09 +09:00
Wonsuk Choi
e3ecdc525f
test(angular-query-experimental/injectQueries): move 'effect' into 'constructor' to follow Angular convention (#10537) 2026-04-21 02:40:18 +09:00
Wonsuk Choi
4ae65fa20d
test(angular-query-experimental/injectQueries): add test for 'combine' option (#10536) 2026-04-21 02:02:05 +09:00
Wonsuk Choi
cd6a274356
test(vue-query/vueQueryPlugin): rename 'testIf' helper to 'itIf' for consistency with 'it' convention (#10533)
* test(vue-query/vueQueryPlugin): rename 'testIf' helper to 'itIf' for consistency with 'it' convention

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-21 00:58:55 +09:00
Wonsuk Choi
fc0462bff7
chore(svelte-query*/package.json): include 'tests' directory in 'test:eslint' scope (#10532) 2026-04-20 23:55:12 +09:00
Wonsuk Choi
0655128b92
test(svelte-query-persist-client): remove unused 'svelte-ignore' directives from test components (#10531) 2026-04-20 23:36:50 +09:00
Wonsuk Choi
6b6667e5fb
test(*): migrate 'test' to 'it' and enforce 'vitest/consistent-test-it' rule (#10528)
* test(*): migrate 'test' to 'it' and enforce 'vitest/consistent-test-it' rule

* ci: apply automated fixes

* chore(preact-query): revert unintended removal of 'eslint-disable' comments from 'src' files

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-20 23:09:37 +09:00
Wonsuk Choi
799952fa94
test(angular-query-experimental/injectQueries): add test for not fetching when 'isRestoring' is true (#10526)
* test(angular-query-experimental/injectQueries): add test for not fetching when 'isRestoring' is true

* test(angular-query-experimental/inject-queries): wrap 'isRestoring' test in 'describe' block for consistency with 'inject-query.test.ts'
2026-04-20 20:48:37 +09:00
Wonsuk Choi
599e51d922
test(vue-query): replace hardcoded query keys with 'queryKey()' utility (#10524) 2026-04-20 14:08:40 +09:00
Wonsuk Choi
5b5d1db9c3
ci(nx.json): add '^compile' dependsOn to 'test:types' target (#10519) 2026-04-20 00:13:03 +09:00
github-actions[bot]
a3ec7b30cc
ci: Version Packages (#10520) release-2026-04-19-1059 @tanstack/angular-query-experimental@5.99.2 @tanstack/eslint-plugin-query@5.99.2 @tanstack/preact-query-devtools@5.99.2 @tanstack/preact-query-persist-client@5.99.2 @tanstack/preact-query@5.99.2 @tanstack/query-async-storage-persister@5.99.2 @tanstack/query-broadcast-client-experimental@5.99.2 @tanstack/query-core@5.99.2 @tanstack/query-devtools@5.99.2 @tanstack/query-persist-client-core@5.99.2 @tanstack/query-sync-storage-persister@5.99.2 @tanstack/react-query-devtools@5.99.2 @tanstack/react-query-next-experimental@5.99.2 @tanstack/react-query-persist-client@5.99.2 @tanstack/react-query@5.99.2 @tanstack/solid-query-devtools@5.99.2 @tanstack/solid-query-persist-client@5.99.2 @tanstack/solid-query@5.99.2 @tanstack/svelte-query-devtools@6.1.18 @tanstack/svelte-query-persist-client@6.1.18 @tanstack/svelte-query@6.1.18 @tanstack/vue-query-devtools@6.1.18 @tanstack/vue-query@5.99.2
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-19 12:55:14 +02:00
Byungsker
c2d0dfff57
fix(vue-query): allow computed ref as enabled property in queryOptions (#10465)
Fixes #10458

The enabled property in QueryOptions type was incorrectly restricted to only
accept getter functions (() => Enabled). This prevented using computed refs
and other Vue reactive values.

This change aligns QueryOptions.enabled type with UseQueryOptions.enabled,
allowing:
- boolean values
- Ref<boolean>
- ComputedRef<boolean>
- () => boolean getter functions
- (query) => boolean query predicates

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2026-04-19 12:38:13 +02:00
Wonsuk Choi
08a4d2b283
test(query-core/queryObserver): add test for skipping refetch when 'retryOnMount' is false and query is in error state (#10518) 2026-04-19 18:43:26 +09:00
Wonsuk Choi
430e988db9
test(query-core/queryObserver): add test for not tracking error prop when 'throwOnError' is not set (#10517) 2026-04-19 16:51:58 +09:00
github-actions[bot]
69d2757c98
ci: Version Packages (#10514) release-2026-04-18-1812 @tanstack/angular-query-experimental@5.99.1 @tanstack/eslint-plugin-query@5.99.1 @tanstack/preact-query-devtools@5.99.1 @tanstack/preact-query-persist-client@5.99.1 @tanstack/preact-query@5.99.1 @tanstack/query-async-storage-persister@5.99.1 @tanstack/query-broadcast-client-experimental@5.99.1 @tanstack/query-core@5.99.1 @tanstack/query-devtools@5.99.1 @tanstack/query-persist-client-core@5.99.1 @tanstack/query-sync-storage-persister@5.99.1 @tanstack/react-query-devtools@5.99.1 @tanstack/react-query-next-experimental@5.99.1 @tanstack/react-query-persist-client@5.99.1 @tanstack/react-query@5.99.1 @tanstack/solid-query-devtools@5.99.1 @tanstack/solid-query-persist-client@5.99.1 @tanstack/solid-query@5.99.1 @tanstack/svelte-query-devtools@6.1.17 @tanstack/svelte-query-persist-client@6.1.17 @tanstack/svelte-query@6.1.17 @tanstack/vue-query-devtools@6.1.17 @tanstack/vue-query@5.99.1
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-18 20:07:19 +02:00
jemin
709971dd2c
fix(eslint-plugin-query): fix no-void-query-fn false positive on enums for TS 6 (#10460)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-04-18 14:23:36 +02:00
Wonsuk Choi
608706ee36
test(query-core/queriesObserver): add test for returning cached combined result when nothing has changed (#10513) 2026-04-18 09:18:30 +09:00
Wonsuk Choi
cc97e9a8b7
test(query-core/queriesObserver): add test for skipping 'trackResult' when 'notifyOnChangeProps' is set (#10512) 2026-04-18 09:07:19 +09:00
Wonsuk Choi
658d32b982
test(query-core/queriesObserver): add test for 'combineResult' fallback when called without raw argument (#10511) 2026-04-18 08:47:09 +09:00
Wonsuk Choi
dbee9ebdc1
test(query-core/queriesObserver): add test for recalculating combined result when 'combine' function changes (#10508) 2026-04-17 00:34:51 +09:00
sourena kazemi
63909c76e3
docs(react): small grammar fix in advanced-ssr docs (#10507) 2026-04-16 20:53:27 +09:00
Wonsuk Choi
c47c67132d
test(svelte-query/useMutationState): add type tests for default 'MutationState' and 'select' inference (#10504) 2026-04-15 17:39:31 +09:00
Wonsuk Choi
da62c8a404
test(svelte-query/createInfiniteQuery): add type tests for page params, 'initialData', 'select', and 'Accessor<QueryClient>' (#10503) 2026-04-15 17:03:11 +09:00
Wonsuk Choi
df77d8cd8b
test(svelte-query/createMutation): add type tests for generic type inference and callbacks (#10502) 2026-04-15 16:47:54 +09:00
Wonsuk Choi
7ffa1ed0b0
test({react,preact,solid}-query/useQueries): fix test description from 'useQuery' to 'useQueries' (#10499) 2026-04-15 02:09:42 +09:00
Wonsuk Choi
75551135de
test(solid-query/useQueries): add type tests for 'initialData', explicit generics, 'throwOnError', 'skipToken', 'combine', and 'Accessor<QueryClient>' (#10498)
* test(solid-query/useQueries): add type tests for 'initialData', explicit generics, 'throwOnError', 'skipToken', 'combine', and 'Accessor<QueryClient>'

* test(solid-query/useQueries): add type tests for 'initialData', explicit generics, 'throwOnError', 'skipToken', 'combine', and 'Accessor<QueryClient>'
2026-04-15 02:00:35 +09:00
Wonsuk Choi
663931dd58
test(solid-query/useQueries): rename 'createQueries.test-d.tsx' to 'useQueries.test-d.tsx' (#10497) 2026-04-15 01:32:30 +09:00
autofix-ci[bot]
396869171f
ci: apply automated fixes 2026-04-14 13:13:23 +00:00
Nirbhay Singh
cea9347717
docs: Update preact-query version in examples (#10483)
* docs(examples): update preact-query version in simple example

* docs(examples): update preact-query version in simple example
2026-04-14 15:12:08 +02:00