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

5,202 commits

Author SHA1 Message Date
Dami Oyeniyi
27cdf32c97
docs(persister): document asynchronous serialization callbacks (#11411)
Co-authored-by: grzdev <grzdev@users.noreply.github.com>
2026-09-14 15:32:30 +02:00
Dami Oyeniyi
ca0a74e7ae
docs(solid-query): correct devtools development-mode explanation (#11409)
Co-authored-by: grzdev <grzdev@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-09-14 15:32:19 +02:00
Kevin Van Cott
77647e96b5
docs(vue): fix reactivity guide heading hierarchy (#11466) 2026-09-14 15:25:17 +02:00
Wonsuk Choi
bfd42a5b79
test(query-core/queryObserver): assert the non-function arm of every option that accepts a value or a callback (#11498) 2026-09-14 10:36:29 +09:00
Wonsuk Choi
b8fdc2806f
test(query-core/queryClient): add type tests for every client method, its config and the tagged key inference (#11497) 2026-09-13 15:17:40 +09:00
Wonsuk Choi
d7f9def0d9
test(query-core/OmitKeyof): add type tests for 'TStrictly' modes, modifier preservation and 'DistributiveOmit' (#11492) 2026-09-13 15:17:26 +09:00
Wonsuk Choi
7083d1e53f
test(query-core/query): add type tests for 'Query', its state, actions and fetch types (#11490) 2026-09-13 15:17:14 +09:00
Wonsuk Choi
37e4448876
test(query-core/queryCache): add type tests for 'QueryCache', its config, store and notify events (#11487) 2026-09-13 15:17:01 +09:00
Wonsuk Choi
b71e8b7cc2
test(query-core/queriesObserver): add type tests for 'QueriesObserver' and its combine inference (#11485) 2026-09-13 15:16:48 +09:00
Wonsuk Choi
795382d35d
test(query-core/streamedQuery): add type tests for 'streamedQuery' parameters and inference (#11483) 2026-09-13 15:16:25 +09:00
Wonsuk Choi
1e8e0943ed
test(query-core/infiniteQueryObserver): add type tests for the infinite options, result branches and page fetching (#11496) 2026-09-13 15:04:42 +09:00
Wonsuk Choi
ba1e818a7a
test(query-core/utils): add type tests for every exported helper, filter and type alias (#11495) 2026-09-13 15:01:38 +09:00
Wonsuk Choi
783aeffb19
test(query-core/mutation): add type tests for 'MutationState', the 'Mutation' class surface and its actions (#11494) 2026-09-13 15:01:20 +09:00
Wonsuk Choi
2fabf5dee5
test(query-core/notifyManager): add type tests for the manager's member keyset, readonly methods and 'batchCalls' constraint (#11493) 2026-09-13 15:01:03 +09:00
Wonsuk Choi
40f93fd759
test(query-core/mutationObserver): add type tests for 'MutationObserver' and its result branches (#11491) 2026-09-13 14:59:42 +09:00
Wonsuk Choi
21c8d450a6
test(query-core/hydration): add type tests for 'dehydrate', 'hydrate' and the dehydrated state types (#11489) 2026-09-13 14:59:29 +09:00
Wonsuk Choi
ac5e3fd68b
test(query-core/retryer): add type tests for 'createRetryer', its config and retry value types (#11488) 2026-09-13 14:56:54 +09:00
Wonsuk Choi
7e7fd51dc5
test(query-core/mutationCache): add type tests for 'MutationCache', its config and notify events (#11486) 2026-09-13 14:56:12 +09:00
Wonsuk Choi
7af539374b
test(query-core/timeoutManager): add type tests for 'TimeoutManager' and its provider types (#11484) 2026-09-13 14:55:32 +09:00
Wonsuk Choi
831c98ba9b
test(query-core/subscribable): add type tests for 'Subscribable' public and protected surface (#11482) 2026-09-13 14:54:30 +09:00
Wonsuk Choi
bef8218fc5
test(query-core/focusManager): add type tests for 'FocusManager' public surface (#11481) 2026-09-13 14:54:14 +09:00
Wonsuk Choi
320d3a57f7
test(query-core/onlineManager): add type tests for 'OnlineManager' public surface (#11480) 2026-09-13 14:54:00 +09:00
Wonsuk Choi
83aa427a5a
test(query-core/environmentManager): add type tests for its public surface (#11479)
* test(query-core/environmentManager): add type tests for its public surface

* test(query-core/environmentManager): assert the override shape by its literal type
2026-09-13 14:53:48 +09:00
Wonsuk Choi
3770e8fe78
test(query-core/queryObserver): add type tests for its public surface (#11478)
* test(query-core/queryObserver): add type tests for its public surface

* test(query-core/queryObserver): merge type tests that assert the same member

* test(query-core/queryObserver): merge the 'queryFn' context assertions into one test

* test(query-core/queryObserver): group its type tests by the member they assert

* test(query-core/queryObserver): group its type tests by the type they assert

* test(query-core/queryObserver): add type tests for the discriminant literals of each 'QueryObserverResult' branch

* test(query-core/queryObserver): split the result type test into one test per 'QueryObserverResult' branch

* test(query-core/queryObserver): group its type tests by the option and result member they assert

* test(query-core/queryObserver): group the branch type tests by their 'QueryObserverResult' member interface

* test(query-core/queryObserver): assert 'initialData' through the options it is given

* test(query-core/queryObserver): reuse the shared 'queryClient' in the 'placeholderData' tests

* test(query-core/queryObserver): add type tests for its default type parameters and queryKey constraint

* test(query-core/queryObserver): assert 'queryKey' is required and 'isInitialLoading' is a boolean

* test(query-core/queryObserver): assert 'subscribe' returns an unsubscribe function

* test(query-core/queryObserver): assert the return types of its callback options

* test(query-core/queryObserver): assert the remaining callback parameters of its options

* test(query-core/queryObserver): assert 'fetchFailureReason' carries the observed error type

* test(query-core/queryObserver): assert 'persister' through the options it is given

* test(query-core/queryObserver): assert the parameter types of 'getOptimisticResult', 'fetchOptimistic' and 'trackResult'

* test(query-core/queryObserver): assert the always-defaulted options of 'getOptimisticResult'

* test(query-core/queryObserver): assert the shape of 'RefetchOptions'

* test(query-core/queryObserver): assert 'networkMode' and 'meta' by their actual shape

* test(query-core/queryObserver): assert 'select' keeps the query data type on the options that precede it

* test(query-core/queryObserver): assert the internal options it reads from the defaulted options

* test(query-core/queryObserver): assert 'data' and 'error' on 'QueryObserverBaseResult'

* test(query-core/queryObserver): assert the discriminant flags and 'status' on 'QueryObserverBaseResult'

* test(query-core/queryObserver): assert the remaining fields of the query state it exposes

* test(query-core/queryObserver): assert 'queryHash' on the query it exposes

* test(query-core/queryObserver): assert the observed types on the 'options' field it exposes

* test(query-core/queryObserver): assert 'data' and 'refetch' are always declared on the base result

* test(query-core/queryObserver): assert 'data' is always declared on the query state

* test(query-core/queryObserver): assert the value branch of 'refetchInterval'

* test(query-core/queryObserver): assert the result properties stay writable

* test(query-core/queryObserver): assert the query and its state stay writable

* test(query-core/queryObserver): assert its options stay writable

* test(query-core/queryObserver): assert the type parameters it derives from the data type alone

* test(query-core/queryObserver): move the type parameter tests under the option and member they belong to

* test(query-core/queryObserver): group the base result tests under 'QueryObserverBaseResult'

* test(query-core/queryObserver): group the base result tests by the property they assert

* test(query-core/queryObserver): group the narrowing tests by the property they assert

* test(query-core/queryObserver): assert its 'persister' differs from the paged variant

* test(query-core/queryObserver): assert each result branch declares exactly the base and narrowed keys

* test(query-core/queryObserver): assert the composition of 'DefinedQueryObserverResult'
2026-09-13 14:53:31 +09:00
Wonsuk Choi
2a18d24e8a
test(svelte-query/createQuery): move type assertions from the runtime test to 'test-d' (#11474) 2026-09-13 00:37:10 +09:00
Wonsuk Choi
27b5e08146
test(solid-query/useQuery): move type assertions from the runtime test to 'test-d' (#11473) 2026-09-13 00:36:49 +09:00
Wonsuk Choi
4fc07a098c
test(query-core/queryObserver): move 'select' type assertions from the runtime test to 'test-d' (#11475) 2026-09-12 21:27:12 +09:00
Wonsuk Choi
f37f7f06c3
test(query-core/notifyManager): add type tests for its batching, scheduling and configuration API (#11477) 2026-09-12 16:40:28 +09:00
Wonsuk Choi
1585f2f6d1
test(query-core/notifyManager): move 'batchCalls' signature type test to 'test-d' (#11476) 2026-09-12 14:45:44 +09:00
Wonsuk Choi
8973f3d3fa
test(angular-query/query-options): add type tests for 'getQueryState' and 'skipToken' inference (#11465) 2026-09-12 12:39:27 +09:00
Tanner Linsley
8c191a966b
docs(react-query): link Start SSR integration guide (#11472) 2026-09-11 17:14:27 -06:00
Wonsuk Choi
7452ef68a2
test({vue,svelte}-query): add type tests for inferring the result type from a generic 'queryFn' (#11464)
* test(vue-query/useQuery): add type test for inferring the result type from a generic 'queryFn'

* test(svelte-query/createQuery): add type test for inferring the result type from a generic 'queryFn'
2026-09-10 09:26:52 +09:00
Wonsuk Choi
23fbdc3e89
test({react,preact,solid,angular}-query): remove 'fromGenericOptionsQueryFn' duplicating 'fromGenericQueryFn' (#11463) 2026-09-10 09:26:39 +09:00
Wonsuk Choi
c07c1f512d
test(angular-query/inject-query): move type assertions from the runtime test to 'test-d' (#11462)
* test(angular-query/inject-query): move type assertions from the runtime test to 'test-d'

* test(angular-query/inject-query): drop 'TestBed.runInInjectionContext' from the moved type assertions
2026-09-10 00:25:04 +09:00
Wonsuk Choi
039f348e3a
test(angular-query/inject-query): assert refetch queryKey outside the discarded promise callback (#11461) 2026-09-10 00:12:03 +09:00
Wonsuk Choi
f9a4e8019d
test(angular-query): tighten 'advanceTimersByTimeAsync' to the awaited 'sleep' duration (#11460) 2026-09-09 23:43:31 +09:00
Wonsuk Choi
16aed4e1a4
test(vue-query/useMutation): add tests for per-call callbacks passed as arguments of 'mutate'/'mutateAsync' (#11459) 2026-09-09 23:33:01 +09:00
Wonsuk Choi
650a9492cf
test(angular-query/inject-mutation): add tests for per-call callbacks passed as arguments of 'mutate'/'mutateAsync' (#11458) 2026-09-09 23:31:25 +09:00
Wonsuk Choi
f7c6be35c8
test(svelte-query/createMutation): group 'mutateAsync' callback tests with the 'mutate' ones (#11454) 2026-09-09 15:25:44 +09:00
Wonsuk Choi
b823eb06f7
test(svelte-query/createMutation): add tests for per-call callbacks when 'createMutation' has no callbacks (#11453) 2026-09-09 14:40:53 +09:00
Wonsuk Choi
df75cb054c
test(svelte-query/createMutation): add tests for 'onSuccess'/'onError'/'onSettled' callbacks and result timing after 'mutateAsync' (#11452)
* test(svelte-query/createMutation): add tests for 'onSuccess'/'onError'/'onSettled' callbacks and result timing after 'mutateAsync'

* test(svelte-query/createMutation): use 'noop' instead of an empty callback for the ignored rejection

* test(svelte-query/createMutation): assert 'mutateAsync' awaits the hook-level callback's returned promise

* test(svelte-query/createMutation): assert 'onSettled' also awaits the hook-level callback's returned promise
2026-09-09 12:45:31 +09:00
Wonsuk Choi
cdbe8cb002
test(svelte-query/createMutation): add tests for parallel 'mutateAsync' calls and concurrent 'mutate' calls (#11450)
* test(svelte-query/createMutation): add tests for parallel 'mutateAsync' calls and concurrent 'mutate' calls

* test(svelte-query/createMutation): assert rendered 'data'/'status' alongside per-call 'onSuccess' mock
2026-09-09 10:54:07 +09:00
Wonsuk Choi
1fd3f61895
test(vue-query/useMutation): add tests for 'MutationFunctionContext' passed to mutationFn and callbacks (#11444)
* test(vue-query/useMutation): add tests for 'MutationFunctionContext' passed to mutationFn and callbacks

* test(vue-query/useMutation): assert 'context' type for 'mutationFn' as well

* test(vue-query/useMutation): drop redundant type annotation from 'mutationFn' params in context test

* test(vue-query/useMutation): rename 'mutationFn' param to '_variables' for consistency
2026-09-09 09:39:53 +09:00
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