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

5,909 commits

Author SHA1 Message Date
Wonsuk Choi
50680b98c4
test({react,preact,solid,svelte}-query,angular-query-experimental): rename 'mutationFn' param to '_variables' in 'MutationFunctionContext' tests (#11448) 2026-09-08 21:22:31 +09:00
Wonsuk Choi
813bf33afa
test(svelte-query/createMutation): add tests for 'MutationFunctionContext' passed to mutationFn and callbacks (#11442) 2026-09-08 19:39:46 +09:00
Wonsuk Choi
94d6670abb
test(angular-query-experimental/inject-mutation): add tests for 'MutationFunctionContext' passed to mutationFn and callbacks (#11443) 2026-09-08 19:37:57 +09:00
Wonsuk Choi
25fde68a4e
test(solid-query/useMutation): add tests for 'MutationFunctionContext' passed to mutationFn and callbacks (#11441) 2026-09-08 19:33:01 +09:00
Wonsuk Choi
0b326b6b67
test({react,preact}-query/useMutation): add tests for 'MutationFunctionContext' passed to mutationFn and callbacks (#11440) 2026-09-08 19:31:56 +09:00
Wonsuk Choi
87cd8cf855
docs(angular-query-experimental): use descriptive names for remaining generic class fields in guide examples (#11446) 2026-09-08 12:11:39 +09:00
Wonsuk Choi
390de5a8dd
docs(angular-query-experimental): add 'readonly' and use descriptive names for class fields in guide examples (#11445)
* docs(angular-query-experimental): add 'readonly' and use descriptive names for class fields in guide examples

* docs(angular-query-experimental): use descriptive names for class fields in 'placeholder-query-data.md'
2026-09-08 11:39:41 +09:00
Wonsuk Choi
e57f8163b1
docs(query-core): add JSDoc across the package and expose it in generated reference docs (#11438)
* docs(query-core): add JSDoc across the package and expose it in generated reference docs

* docs(config.json): add sidebar entries for newly generated query-core reference docs

* docs(query-core): migrate remaining prose from the legacy 'docs/reference' pages into JSDoc

* docs(query-core): remove legacy 'docs/reference' pages superseded by the generated reference

* docs(query-core): regenerate reference docs after merging main

* docs(query-core): document missing default values for MutationOptions, combine, and QueryFilters.type

* fix(query-devtools): drop unnecessary 'query-core' project reference

* docs(query-core): document missing default values and normalize 'Defaults to' spacing

* docs(query-core): fix 'environmentManager' JSDoc example
2026-09-07 18:22:38 +02:00
Dominik Dorfmeister 🔮
a1119e5a3f
ref(hydration): remove outdated dehydratedAt fallback (#11436)
* ref(hydration): remove outdated dehydratedAt fallback

* ref: remove two more unnecessary dehydratedAt undefined checks

* fix constructing PersistedClient in test
2026-09-06 18:09:10 +02:00
Wonsuk Choi
49c7f46506
docs(solid-query/useMutation): add JSDoc examples for optimistic update rollback and parallel 'mutateAsync' calls (#11431)
* docs(solid-query/useMutation): add JSDoc examples for optimistic update rollback and parallel 'mutateAsync' calls

* docs(solid-query/useMutation): clarify 'Promise.all' only waits for all mutateAsync calls when they succeed
2026-09-07 00:52:49 +09:00
Wonsuk Choi
1a51bb80bf
docs(*): clarify 'Promise.all' only waits for all mutateAsync calls when they succeed (#11435) 2026-09-07 00:31:27 +09:00
Wonsuk Choi
fed4aaa0c6
test(solid-query/useMutation): add tests for optimistic update rollback and parallel 'mutateAsync' calls (#11430) 2026-09-07 00:15:38 +09:00
Peter Budai
aaf4ad94a5
docs(vue-query): skip hydration when Nuxt state is null (#11429)
fix(ssr): ensure hydration only occurs when vueQueryState is not null
2026-09-06 16:55:42 +02:00
Wonsuk Choi
0776bce328
test(angular-query-experimental/inject-infinite-query): assert 'queryFn' call count in skipToken test (#11432)
* test(angular-query-experimental/inject-infinite-query): assert 'queryFn' call count in skipToken test

* test(angular-query-experimental/inject-infinite-query): simplify skipToken test's 'queryFn' to drop the non-null assertion
2026-09-06 23:36:00 +09:00
Wonsuk Choi
e12e5bee52
test(svelte-query/createMutation): add tests for optimistic update rollback and success paths using cache-based 'onMutateResult' (#11425) 2026-09-06 23:31:18 +09:00
Wonsuk Choi
f4fbf2e858
test(svelte-query/createQuery): add test for 'initialData' with a failed refetch (#11424) 2026-09-06 23:28:46 +09:00
Wonsuk Choi
47bcd93f58
test(solid-query/useQuery): add tests for 'initialData' with a failed refetch and 'skipToken' dependent query (#11423)
* test(solid-query/useQuery): add tests for 'initialData' with a failed refetch and 'skipToken' dependent query

* test(solid-query/useQuery): assert 'queryFn' call count in skipToken test
2026-09-06 23:26:26 +09:00
Wonsuk Choi
8d1981044f
test({react,preact}-query/useInfiniteQuery): assert 'queryFn' call count in skipToken test (#11433) 2026-09-06 23:23:39 +09:00
Wonsuk Choi
14ba7bef29
test(solid-query/useInfiniteQuery): add test for 'initialData' with a failed refetch (#11422) 2026-09-06 22:49:36 +09:00
Wonsuk Choi
8441a6aa7b
test({react,preact}-query/useMutation): add tests for optimistic update rollback and success paths using cache-based 'onMutateResult' (#11421) 2026-09-06 22:48:50 +09:00
Wonsuk Choi
f7bbaed310
test({react,preact}-query/useQuery): add test for 'initialData' with a failed refetch (#11420) 2026-09-06 22:47:51 +09:00
Wonsuk Choi
2a26acc0df
test({react,preact}-query/useInfiniteQuery): add tests for 'initialData' with a failed refetch and 'skipToken' dependent query (#11419)
* test(preact-query/useInfiniteQuery): add tests for 'initialData' with a failed refetch and 'skipToken' dependent query

* test(react-query/useInfiniteQuery): add tests for 'initialData' with a failed refetch and 'skipToken' dependent query
2026-09-06 22:47:16 +09:00
Wonsuk Choi
a3d7ab0d1d
test(angular-query-experimental/inject-infinite-query): add test for 'initialData' with a failed refetch (#11418) 2026-09-06 22:42:15 +09:00
Wonsuk Choi
69a7634459
test(angular-query-experimental/inject-query): add tests for 'enabled' signal transitions and 'initialData' with a failed refetch (#11417) 2026-09-06 22:41:52 +09:00
Wonsuk Choi
d5c0d1e475
test(angular-query-experimental/inject-mutation): add tests for optimistic update rollback, concurrent 'mutate'/'mutateAsync' calls, and 'TOnMutateResult' type inference (#11415)
* test(angular-query-experimental/inject-mutation): add tests for optimistic update rollback, concurrent 'mutate'/'mutateAsync' calls, and 'TOnMutateResult' type inference

* test(angular-query-experimental/inject-mutation): assert in-flight 'isPending' before mutations settle
2026-09-06 15:03:26 +09:00
Wonsuk Choi
e2b7b036aa
test(angular-query-experimental/inject-infinite-query): add runtime and type tests for 'skipToken' dependent query (#11414)
* test(angular-query-experimental/inject-infinite-query): add runtime and type tests for 'skipToken' dependent query

* test(angular-query-experimental/inject-infinite-query): keep 'queryKey' stable in skipToken transition test
2026-09-06 15:02:00 +09:00
Wonsuk Choi
345bb3d372
docs(angular-query-experimental): add 'readonly' to class fields in JSDoc examples (#11416) 2026-09-06 13:03:46 +09:00
Wonsuk Choi
9810709718
docs(angular-query-experimental): add JSDoc across the package (#11406)
* docs(angular-query-experimental): add JSDoc across the package and generate reference docs with TypeDoc

* docs(angular-query-experimental): address CodeRabbit review comments on JSDoc accuracy

* docs(angular-query-experimental): use 'changes' instead of 'narrows' for select's effect on TData
2026-09-06 12:12:24 +09:00
Wonsuk Choi
1893a965d2
test(vue-query/useMutation): add tests for optimistic update rollback and concurrent 'mutate'/'mutateAsync' calls (#11403) 2026-09-05 15:52:47 +09:00
Wonsuk Choi
aeeded4c2e
test(vue-query/useInfiniteQuery): add tests for 'maxPages' getter reactivity, 'hasNextPage' transitions, and 'queryKey' getter rejection (#11402) 2026-09-05 15:52:32 +09:00
Wonsuk Choi
0da5ce88fc
test(vue-query/useQuery): add tests for 'select', 'enabled' getter, 'initialData', 'keepPreviousData', and 'queryKey' getter reactivity rules (#11401)
* test(vue-query/useQuery): add tests for 'select', 'enabled' getter, 'initialData', 'keepPreviousData', and 'queryKey' getter reactivity rules

* test(vue-query/useQuery): split 'initialData' test into seeding and background refetch cases
2026-09-05 15:52:14 +09:00
Wonsuk Choi
85de9c35ac
docs(svelte-query): regenerate reference docs to fix stale source line numbers (#11399) 2026-09-05 13:43:50 +09:00
Wonsuk Choi
309508612a
docs(vue-query): add JSDoc and generate reference docs with TypeDoc (#11378)
* docs(vue-query): add JSDoc across the package

* docs(vue-query): generate reference docs with TypeDoc

* docs(config): register vue-query TypeDoc reference pages

* docs(vue-query): preserve dehydrate/hydrate option docs and fix reference links

* docs(config): reorder vue-query reference nav to list 'Functions' first

* docs(config): reorder vue-query 'Functions' entries to match react/preact grouping

* docs(vue-query): restore Suspense guide link and 'placeholderData' behavior note lost in TypeDoc migration

* docs(vue-query): correct JSDoc accuracy issues and reactivity bugs

* docs(vue-query): fix invalidateQueries example that invalidated every query, add whole-options getter example

* docs(vue-query): add examples for the mutationOptions and useInfiniteQuery getter overloads

* docs(vue-query): add react-parity examples for select, skipToken, keepPreviousData, optimistic updates, and infinite scroll

* docs(vue-query): add queryOptions select typing example to useQueries

* docs(vue-query): disconnect IntersectionObserver on unmount, drop non-null assertion in skipToken examples

* docs(vue-query): add 'skipToken' factory example to 'queryOptions'

* docs(vue-query): correct 'queryKey' reactive-getter claim in 'useQuery'/'useInfiniteQuery'

* docs(vue-query): correct 'queryKey' reactive-getter claim in 'QueryOptions' type JSDoc

* docs(vue-query): fix reversed claim that 'queryKey' entries can't be reactive getters
2026-09-05 13:29:11 +09:00
KevinZhou
799a33cdad
test(query-core/retryer): add unit tests for 'createRetryer' (#11383)
* test(query-core): add unit tests for 'createRetryer'

* test(query-core/retryer): discard unused 'promise' binding in offline retry test

---------

Co-authored-by: pengzh1 <penzh1@qq.com>
Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-09-04 23:35:49 +09:00
Wonsuk Choi
fc51e96045
docs(react-query, preact-query): use 'button' instead of undefined 'Button' in suspense guide examples (#11390) 2026-09-04 16:00:13 +09:00
Wonsuk Choi
9ea8ea0030
docs(preact-query): fix broken TkDodo link mangled by 'react-query'->'preact-query' replace (#11389) 2026-09-04 16:00:02 +09:00
Jooyoung Shin
ec3f992cbf
docs(preact-query): add 'Suspense' and 'Testing' guides (#11377)
docs(preact-query): add Suspense and Testing guides

The Preact docs had no counterpart for the React "Suspense" and
"Testing" guides even though `@tanstack/preact-query` ships the
suspense hooks and `QueryErrorResetBoundary`.

Follow the existing Preact docs convention: reference the React guide
via `ref:` + `replace:` and override only the React-specific sections
(`preact/compat` Suspense, an error boundary built on `useErrorBoundary`,
`@testing-library/preact`). The React guides only gain the section
markers needed for the overrides; their wording is unchanged.
2026-09-04 15:11:20 +09:00
Wonsuk Choi
b81a6396c6
docs(preact-query): add 'The Query Options API' link, matching react's queryOptions JSDoc (#11388) 2026-09-04 12:04:31 +09:00
Wonsuk Choi
19c96a5134
docs(solid-query): remove 'The Query Options API' link, solid's queryOptions API differs from react's (#11387) 2026-09-04 11:42:55 +09:00
Wonsuk Choi
26e24a07ff
docs(config): reorder solid-query 'Functions' entries to match react grouping (#11386) 2026-09-04 10:26:25 +09:00
Wonsuk Choi
b4f5736437
docs(react-query): fix run-on sentence and subject-verb agreement in SSR guide (#11382) 2026-09-03 23:02:00 +09:00
Wonsuk Choi
d29e7cf0b5
docs(preact-query): fix XSS-unsafe example and missing 'staleTime' in SSR guide (#11381) 2026-09-03 23:00:16 +09:00
Wonsuk Choi
2c5ba585ac
docs(preact-query): add 'Server Rendering & Hydration' guide (#11380)
* docs(preact-query): add 'Server Rendering & Hydration' guide

* docs(preact-query): add 'serializeData'/'deserializeData' to SSR guide
2026-09-03 21:48:01 +09:00
Wonsuk Choi
a29ca68867
docs: redirect flat reference URLs broken by the TypeDoc migration (#11379)
* chore(scripts/generate-docs): inject 'redirect_from' into flat reference URLs

* docs(react-query, solid-query): add 'redirect_from' for URLs broken by the TypeDoc migration
2026-09-03 18:08:28 +09:00
Wonsuk Choi
a0d8cfb743
chore(scripts/generate-docs): add vue-query entry point (#11374) 2026-09-03 15:07:16 +09:00
Wonsuk Choi
fe77cdc8d7
docs({react,preact,solid}-query): correct inaccurate JSDoc statements (#11372)
* docs(react-query): correct inaccurate JSDoc statements

* docs(preact-query): correct inaccurate JSDoc statements

* docs({react,preact,solid}-query): stop implying useQueries options are fully identical to useQuery
2026-09-03 10:42:36 +09:00
Wonsuk Choi
de8ab4db3e
docs(solid-query): add JSDoc and generate reference docs with TypeDoc (#11369)
* docs(solid-query): add JSDoc across the package

* docs(solid-query): generate reference docs with TypeDoc

* docs(config): register solid-query TypeDoc reference pages

* docs(solid-query): correct inaccurate JSDoc statements flagged in review
2026-09-03 10:19:23 +09:00
Choi Hyunjun
b4daab2653
test(query-core/removable): add unit tests for 'Removable' base class (#11365)
* test(query-core/removable): add unit tests for the Removable base class

* test(query-core/removable): restore server override in a finally block

---------

Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-09-03 10:11:50 +09:00
Choi Hyunjun
645e4ac4a1
test(query-core/subscribable): add unit tests for 'Subscribable' base class (#11364)
test(query-core/subscribable): add unit tests for the Subscribable base class
2026-09-03 10:11:26 +09:00
Wonsuk Choi
33fe7c4762
chore(scripts/generate-docs): add solid-query entry point (#11368) 2026-09-02 16:27:55 +09:00