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

5,909 commits

Author SHA1 Message Date
Wonsuk Choi
4762a62c7c
test(vue-query/queryOptions): add type tests for a conditional 'skipToken' and a 'skipToken'-only 'queryFn' (#12216)
* test(vue-query/queryOptions): add type tests for a conditional 'skipToken' and a 'skipToken'-only 'queryFn'

* test(vue-query/queryOptions): assert the data tag directly in the 'skipToken'-only type test
2026-10-21 10:35:45 +09:00
Wonsuk Choi
90e331decc
docs(vue-query/queryClient): add the descriptions of the deprecated 'ensureQueryData', 'fetchQuery', 'prefetchQuery', 'fetchInfiniteQuery', and 'prefetchInfiniteQuery' overrides (#12212) 2026-10-20 21:55:40 +09:00
Wonsuk Choi
7b9a85e595
docs(vue-query/queryClient): inherit the descriptions of the first overload on the 'MaybeRefDeep' overloads of 'getQueryData', 'setQueryData', 'query', and 'infiniteQuery' (#12211) 2026-10-20 21:50:40 +09:00
Wonsuk Choi
9162d7f499
docs({angular,preact,solid,svelte,vue}/installation): state the supported framework versions to match the peer dependency ranges (#12210) 2026-10-20 20:52:25 +09:00
Wonsuk Choi
67eaf77279
docs(lit/guides/testing): add the testing guide with 'QueryClientProvider' and fake timers (#12206)
* docs(lit/guides/testing): add the testing guide with 'QueryClientProvider' and fake timers

* docs(lit/guides/testing): add the imports to the controller and fake timers examples so each can be used as its own file
2026-10-20 19:58:57 +09:00
Wonsuk Choi
bd427b90b2
docs(svelte/testing): add the imports to the 'withEffectRoot' and fake timers examples so each can be used as its own file (#12208) 2026-10-20 19:58:01 +09:00
Wonsuk Choi
56432b4a22
docs: use 'sh' instead of 'bash' for the shell code blocks (#12207) 2026-10-20 17:21:27 +09:00
Wonsuk Choi
4c56e9eea5
docs(svelte/testing): add the testing guide with '$effect.root' and Svelte Testing Library (#12205)
* docs(svelte/testing): add the testing guide with '$effect.root' and Svelte Testing Library

* docs(svelte/testing): clean up the effect root in 'finally' and add the 'withEffectRoot' helper variant

* docs(svelte/testing): explain that testing a function on its own needs a 'QueryClient' accessor and point to the component approach otherwise

* docs(svelte/testing): share the query with 'queryOptions' instead of a wrapper function that takes a 'QueryClient' accessor
2026-10-20 16:32:49 +09:00
Wonsuk Choi
21654f27bd
docs(react/guides/testing): install '@testing-library/react' instead of the React 17 hooks library and remove the dangling 'waitFor' notes (#12204) 2026-10-20 16:04:18 +09:00
Wonsuk Choi
35c505a5f2
docs(angular/guides/testing): limit the 'whenStable' guidance to work that settles right away and point to fake timers for the rest (#12203) 2026-10-20 15:47:24 +09:00
Wonsuk Choi
b5fe9512df
docs(angular): use 'angular-ts' for the code blocks with '@Component' to highlight their templates (#12202) 2026-10-20 15:30:50 +09:00
Wonsuk Choi
5178ad4b1a
docs(react/guides/testing): fix the 'nock' chain order and the 'data.pages' assertions in the infinite query example (#12200) 2026-10-20 15:26:34 +09:00
Wonsuk Choi
a8f39eea4c
docs(angular/guides/testing): advance fake timers in the mutation example instead of awaiting 'whenStable' (#12201) 2026-10-20 15:26:14 +09:00
Wonsuk Choi
fb53a81e1c
docs(angular/guides/testing): advance fake timers instead of awaiting 'whenStable' in the component examples, and add Angular Testing Library and 'TestBed.runInInjectionContext' variants (#12199)
* docs(angular/guides/testing): advance fake timers and run 'detectChanges' in the component examples with 'TestBed' and Angular Testing Library instead of awaiting 'whenStable'

* docs(angular/guides/testing): add the 'TestBed.runInInjectionContext' variant to the component examples
2026-10-20 15:17:59 +09:00
Wonsuk Choi
ca77c9f699
docs(solid/guides/testing): add the testing guide with 'renderHook' from '@solidjs/testing-library' (#12196)
* docs(solid/guides/testing): add the testing guide with 'renderHook' from '@solidjs/testing-library'

* docs(solid/guides/testing): restore real timers in 'afterEach' in the fake timers example
2026-10-20 14:50:47 +09:00
Wonsuk Choi
608fca7426
docs(angular/guides/testing): advance fake timers in the infinite query example instead of awaiting 'whenStable' (#12197)
* docs(angular/guides/testing): advance fake timers in the infinite query example instead of awaiting 'whenStable'

* docs(angular/guides/testing): restore real timers in 'afterEach' in the infinite query example
2026-10-20 14:50:24 +09:00
Wonsuk Choi
047d82914c
docs(vue/guides/testing): restore real timers in 'afterEach' in the fake timers example (#12198) 2026-10-20 14:50:10 +09:00
Wonsuk Choi
64d3b15cc1
refactor(examples/lit/pagination): rename the 'onError' 'context' parameter to 'onMutateResult' (#12195) 2026-10-20 14:11:00 +09:00
Wonsuk Choi
88b3edde75
docs(lit/guides/mutations): rename the third 'onError' parameter from 'context' to 'onMutateResult' (#12194) 2026-10-20 14:10:46 +09:00
Wonsuk Choi
85f00d8731
docs(lit/guides/ssr): move inline 'type' specifiers to top-level 'import type' declarations (#12193) 2026-10-20 14:10:31 +09:00
Wonsuk Choi
fab1bc22d6
docs(lit/guides/query-keys): declare 'userId' in 'static properties' so changing it refetches (#12192) 2026-10-20 14:10:04 +09:00
Wonsuk Choi
1d016ddab7
docs(lit/{installation,typescript}): require 'useDefineForClassFields: false' so reactive properties initialized as class fields trigger updates (#12191) 2026-10-20 14:09:41 +09:00
Wonsuk Choi
93ecb10912
docs(lit/guides/query-functions): add 'as const' to the 'queryKey' so the destructured filters are typed (#12190) 2026-10-20 14:09:27 +09:00
Wonsuk Choi
81e6a935ae
fix(examples/lit/pagination): show the error message instead of the stringified error (#12187) 2026-10-20 12:19:40 +09:00
Wonsuk Choi
1ed8158eb0
fix(examples/lit/basic): show the error message instead of the stringified error (#12186) 2026-10-20 12:19:31 +09:00
Wonsuk Choi
8aea733e19
refactor(examples/lit/pagination): infer the controller types instead of passing generics that repeat the field types (#12185) 2026-10-20 12:19:17 +09:00
Wonsuk Choi
45e8a5eef3
refactor(examples/lit/basic): infer the controller types from the query and mutation functions instead of passing generics (#12184) 2026-10-20 12:19:03 +09:00
Wonsuk Choi
4ea78d6bb2
docs(angular/overview): guard the error with 'isError()', rename the 'Response' interface to 'Repo', and remove the unused 'CommonModule' import (#12183) 2026-10-20 12:04:29 +09:00
Wonsuk Choi
86a9c88b38
docs(angular/guides/mutation-options): fix the duplicated 'query-options' id and inject the 'QueryClient' used in the example (#12182) 2026-10-20 12:04:14 +09:00
Wonsuk Choi
c223661efb
docs(angular/guides/testing): use 'provideHttpClientTesting' instead of the deprecated 'HttpClientTestingModule' and add 'initialPageParam' to the infinite query example (#12181) 2026-10-20 12:01:12 +09:00
Wonsuk Choi
4a18a7016e
docs(angular/guides/infinite-queries): add the required 'initialPageParam' to the bi-directional example (#12180) 2026-10-20 12:00:44 +09:00
Wonsuk Choi
ef39130852
docs(angular/guides/query-cancellation): pass filters to 'cancelQueries' and fix the imports of the 'HttpClient' example (#12179) 2026-10-20 12:00:25 +09:00
Wonsuk Choi
13d1f1c01f
docs(angular/quick-start): provide 'HttpClient' in the NgModule example (#12178) 2026-10-20 12:00:10 +09:00
Wonsuk Choi
55fa9595ed
refactor(examples/angular): type the mock interceptor events and bodies as 'unknown' instead of 'any' (#12177) 2026-10-20 11:52:39 +09:00
Wonsuk Choi
5106c1b804
refactor(examples/angular/{devtools-panel,rxjs,simple}): rename the 'Response' interfaces so they do not shadow the global 'Response' type (#12176) 2026-10-20 11:44:37 +09:00
Wonsuk Choi
c41eb8d82a
refactor(examples/angular/infinite-query-with-max-pages): type 'nextId' and 'previousId' as 'number | null' to match the mock response (#12175) 2026-10-20 11:43:19 +09:00
Wonsuk Choi
683c869265
refactor(examples/angular/basic-persister): use 'output()' instead of '@Output()', remove the unused 'QueryClient', and align the components with the basic example (#12172) 2026-10-20 11:37:31 +09:00
Wonsuk Choi
35d21b2d1b
fix(examples/angular/optimistic-updates): throw an 'HttpErrorResponse' from the mock so the failing mutation rolls back in 'onError' (#12173) 2026-10-20 11:37:07 +09:00
Wonsuk Choi
48b599fa69
refactor(examples/angular/optimistic-updates): rename the 'onError' 'context' parameter to 'onMutateResult' and prefix the unused ones (#12174) 2026-10-20 11:36:57 +09:00
Wonsuk Choi
c87c0eafbc
fix(examples/angular/infinite-query-with-max-pages): disable the previous page button while fetching the previous page instead of the next page (#12167) 2026-10-20 10:59:06 +09:00
Wonsuk Choi
5490375a35
refactor(examples/angular/query-options-from-a-service): read the cached post with the service's 'queryKey' instead of an inline key (#12169) 2026-10-20 10:57:42 +09:00
Wonsuk Choi
4c9c4cf303
refactor(examples/angular/optimistic-updates): remove the unused 'clearMutation' that created a second add mutation (#12168) 2026-10-20 10:57:27 +09:00
Wonsuk Choi
542a134e03
refactor(examples/angular/basic-persister): make the 'postId' input required and remove the always-true 'enabled' in 'PostComponent' (#12171) 2026-10-20 10:56:08 +09:00
Wonsuk Choi
2fb9d905f2
docs(examples/vue/dependent-queries): fix the post endpoint path and the capitalized 'Data' in the description (#12166) 2026-10-20 10:40:22 +09:00
Wonsuk Choi
71fb7632df
fix(examples/vue/basic): share the post queries with 'queryOptions' in 'src/api.ts' and mark visited posts from the query cache (#12161) 2026-10-20 10:20:11 +09:00
Wonsuk Choi
ca7af33734
fix(examples/vue/dependent-queries): share the post and author queries with 'queryOptions' in 'src/api.ts' and mark visited posts from the query cache (#12162) 2026-10-20 10:19:50 +09:00
Wonsuk Choi
c83595d0b5
fix(examples/vue/2.7-basic): share the post queries with 'queryOptions' in 'src/api.ts' and mark visited posts from the query cache (#12165) 2026-10-20 10:19:22 +09:00
Wonsuk Choi
09cc250b57
fix(examples/vue/2.6-basic): share the post queries with 'queryOptions' in 'src/api.ts' and mark visited posts from the query cache (#12164) 2026-10-20 10:19:14 +09:00
Wonsuk Choi
5824193935
fix(examples/vue/persister): share the post queries and persisters with 'queryOptions' in 'src/api.ts' and mark visited posts from the query cache (#12163) 2026-10-20 10:18:57 +09:00
Wonsuk Choi
315e8fbf18
docs(vue/reactivity): fix the garbled sentence about intentionally non-reactive queries (#12159) 2026-10-20 03:55:52 +09:00