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

1,395 commits

Author SHA1 Message Date
Wonsuk Choi
a29c34fd48
docs(framework/angular): use the defined 'QueriesService' in 'queryOptions' and 'mutationOptions' snippets (#12376) 2026-10-26 02:07:05 +09:00
Wonsuk Choi
eea41e497f
docs(framework/lit/guides): update example snippets to the 'services/{domain}' query factories (#12375) 2026-10-26 02:06:55 +09:00
Wonsuk Choi
db81416812
docs(*): use American spellings 'behavior', 'initialized', and 'optimize', and 'falsy' instead of 'falsey' (#12348) 2026-10-25 21:27:53 +09:00
Wonsuk Choi
6c3cc51cf6
docs(angular/devtools): add an 'Embedded Mode' section for 'injectDevtoolsPanel' (#12320) 2026-10-25 10:48:27 +09:00
Wonsuk Choi
a5d5e00458
docs(*-devtools): describe how the 'theme' prop interacts with the theme selected in the devtools Settings menu (#12314) 2026-10-24 02:53:19 +09:00
autofix-ci[bot]
4ed6095096
ci: apply automated fixes 2026-10-23 09:46:30 +00: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
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
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
315e8fbf18
docs(vue/reactivity): fix the garbled sentence about intentionally non-reactive queries (#12159) 2026-10-20 03:55:52 +09:00
Wonsuk Choi
a760a82631
docs(vue/guides/paginated-queries): move the 'Ref' type import after the value imports and sort the 'vue-query' members (#12158) 2026-10-20 03:54:40 +09:00
Wonsuk Choi
69839fe2fd
docs(vue/guides/paginated-queries): use 'import type' for 'Ref' (#12157) 2026-10-20 03:51:54 +09:00
Wonsuk Choi
054c244e75
docs(vue/reactivity): clarify that every query option accepts refs while only 'queryKey' and 'enabled' resolve getters (#12156) 2026-10-20 03:50:37 +09:00
Wonsuk Choi
5b6042cef9
docs(*): document the 'hideDisabledQueries' devtools option and its 'false' default (#12155) 2026-10-20 03:49:02 +09:00
Wonsuk Choi
a78393551c
docs(vue/plugins/createPersister): use 'localStorage' instead of the undefined 'AsyncStorage' in the examples (#12154) 2026-10-20 03:45:45 +09:00
Wonsuk Choi
341948658a
docs(vue/plugins/createPersister): document the 'removeQueries' function of the query persister (#12153) 2026-10-20 03:45:08 +09:00
Wonsuk Choi
9c80d0f4ce
docs(vue/reactivity): wrap the 'useQuery' options in an object, use 'toValue' for the 'MaybeRef' in 'enabled', and fix typos (#12152) 2026-10-20 03:43:17 +09:00
Wonsuk Choi
31041be074
docs(vue/guides/mutations): fix the error reset and paused mutations snippets that did not compile (#12151) 2026-10-20 03:39:13 +09:00
Wonsuk Choi
234eae8c3f
docs(vue/guides/dependent-queries): replace the removed 'isIdle' with 'status' and 'fetchStatus' and guard the undefined 'userIds' (#12150) 2026-10-20 03:37:09 +09:00
Wonsuk Choi
f83e0d5d9c
docs(vue/guides/testing): add a testing guide for composables with Vue Test Utils (#12149) 2026-10-20 03:32:55 +09:00
Wonsuk Choi
b2442d2bc4
docs(vue/guides/custom-client): pass the client to the devtools when using a custom 'queryClientKey' (#12148) 2026-10-20 03:32:11 +09:00
Wonsuk Choi
f275427cd0
docs(vue/installation): link to 'vuejs.org' instead of 'staging.vuejs.org' for '<script setup>' (#12147) 2026-10-20 03:21:35 +09:00
Wonsuk Choi
de6ac8e4ec
docs(vue/guides/custom-client): pass the client from 'useQueryClient' instead of the removed 'queryClientKey' query option (#12145) 2026-10-20 03:15:16 +09:00
Wonsuk Choi
db22bfc516
refactor(examples,docs): use 'TanStack/query' consistently in the GitHub API URLs (#12137)
* refactor(examples,docs): use 'TanStack/query' consistently in the GitHub API URLs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-20 02:34:00 +09:00
autofix-ci[bot]
8c3f218b13
ci: apply automated fixes 2026-10-19 10:58:53 +00:00
Dominik Dorfmeister 🔮
1f8d134ea3
fix(react, preact): recompute mutation state snapshots (#12117)
* fix(react-query): recompute mutation state snapshots

* test(react-query): assert visible mutation counts

* fix(react-query): preserve mutation result references across renders

* fix(react-query): cache snapshots for non-plain selector results

* fix(preact-query): recompute mutation state snapshots

* Apply suggestion from @TkDodo

* fix: remove useMemo
2026-10-19 12:57:16 +02:00