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

5,975 commits

Author SHA1 Message Date
Wonsuk Choi
f99c6e3e45
refactor(examples/react/{batching,chat,react-native}): move the data layer into 'services/{domain}' with a query factory (#12353) 2026-10-26 00:11:05 +09:00
Wonsuk Choi
88018e578a
refactor(examples/react/{rick-morty,star-wars}): move the data layer into one 'services/{domain}' folder per resource with a query factory (#12352) 2026-10-26 00:10:52 +09:00
Wonsuk Choi
1028a29774
refactor(examples/react): move the data layer of the pagination and infinite query examples into 'services/{domain}' with a query factory (#12351) 2026-10-26 00:10:43 +09:00
Wonsuk Choi
9aafaa9bf5
refactor(examples/react): move the data layer of the single-domain examples into 'services/{domain}' with a query factory (#12350)
* refactor(examples/react): move the data layer of the single-domain examples into 'services/{domain}' with a query factory

* refactor(examples/react/basic-graphql-request): type the posts list as only the selected 'id' and 'title' fields
2026-10-26 00:10:07 +09:00
Wonsuk Choi
a777b6b22f
refactor(examples/react/basic): move the data layer into 'services/posts' with 'api.ts', 'queries.ts', and 'types.ts' and a query factory (#12349) 2026-10-25 23:17:05 +09:00
Wonsuk Choi
9318e15879
docs(examples/react/playground): fix the 'Playground' typo in the page title (#12346) 2026-10-25 21:28:58 +09:00
Wonsuk Choi
dedc2a919a
docs(examples/solid/solid-start-streaming): fix the 'queueMicrotask' typo in the batching method label and description (#12347) 2026-10-25 21:28:29 +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
ecc6b0ffb2
docs(examples/react/batching): fix the 'numeric' and 'separated' typos in the character ids label (#12345) 2026-10-25 21:26:50 +09:00
Wonsuk Choi
4f3dba5782
refactor(vue-query/utils): type 'isPlainObject' as 'Record<PropertyKey, unknown>' instead of the 'Object' wrapper type, like 'query-core' (#12343) 2026-10-25 21:11:38 +09:00
Wonsuk Choi
d7c0418f87
chore(react-query/{useQuery,useInfiniteQuery}): remove the unused '@eslint-react/no-nested-component-definitions' disable and explain the remaining false positive (#12344) 2026-10-25 21:11:06 +09:00
Wonsuk Choi
aa3e26b4f0
chore(react-query/{HydrationBoundary,utils}): explain why 'react-hooks-js/refs' and 'react-hooks-js/set-state-in-effect' are disabled (#12342) 2026-10-25 20:21:53 +09:00
Wonsuk Choi
4c1384f122
test(solid-query/{useMutation,useIsMutating,useQueries}): assert that the work settles in the cache after unmount while the component state stays unchanged (#12341) 2026-10-25 20:18:56 +09:00
Wonsuk Choi
b4212cc9f8
test(preact-query/useMutation): assert that the mutation settles in the cache after unmount while the component state stays unchanged (#12340) 2026-10-25 20:18:48 +09:00
Wonsuk Choi
b2801aa76f
test(react-query/useMutation): assert that the mutation settles in the cache after unmount while the component state stays unchanged (#12339) 2026-10-25 20:18:30 +09:00
Wonsuk Choi
659431a5f5
test(query-devtools/utils): use English fixture values and fix the 'bolognese' typo instead of disabling 'cspell/spellchecker' (#12338) 2026-10-25 13:43:39 +09:00
Wonsuk Choi
e8ffa3f39a
test(query-core/streamedQuery): consume the signal with 'void context.signal' instead of an always-truthy condition, and explain the kept 'require-await' disables (#12337) 2026-10-25 13:41:54 +09:00
Wonsuk Choi
8429d10720
test(solid-query/{useMutation,useIsMutating,useQueries}): wait for the work to settle after unmount and assert that no error is logged (#12336) 2026-10-25 13:41:40 +09:00
Wonsuk Choi
a6211e3b2f
test(preact-query/useMutation): wait for the mutation to settle after unmount and assert that no error is logged (#12335) 2026-10-25 13:40:14 +09:00
Wonsuk Choi
43636c43e7
test(react-query/useMutation): wait for the mutation to settle after unmount and assert that no error is logged (#12334) 2026-10-25 13:39:49 +09:00
Wonsuk Choi
3700deff20
test(query-core/utils): assert with 'toBeCallableWith' that 'invalidateQueries' accepts a union of query keys with different lengths (#12333) 2026-10-25 13:39:35 +09:00
Wonsuk Choi
83aeaf054b
test(query-devtools/{Explorer,Devtools}): remove unnecessary type assertions and their 'oxlint-disable' comments (#12330) 2026-10-25 13:29:34 +09:00
Wonsuk Choi
f9931c130a
test(query-core): remove unnecessary type assertions and their 'oxlint-disable' comments, and explain the one kept in 'retryer.test-d' (#12331) 2026-10-25 13:29:08 +09:00
Wonsuk Choi
1eed9d9ef5
chore(*): explain why 'vitest-js/valid-expect' is disabled for the 'expectTypeOf<TQueryKey>(ctx.queryKey)' checks in the 'useQueries' type tests (#12332) 2026-10-25 13:28:51 +09:00
Wonsuk Choi
a155bb8c77
chore(query-core/query): explain why 'typescript/no-unnecessary-condition' is disabled for the 'state' check in 'setOptions' (#12326) 2026-10-25 12:49:57 +09:00
Wonsuk Choi
0c5ec0695a
chore(eslint-plugin-query/detect-react-query-imports): explain why 'typescript/no-unnecessary-condition' is disabled for the 'importKind' check (#12327) 2026-10-25 12:49:39 +09:00
Wonsuk Choi
016b83ecc0
chore(lit-query/{QueryClientProvider,BaseController}): explain why 'typescript/no-unnecessary-condition' is disabled for the 'client' checks (#12328) 2026-10-25 12:49:24 +09:00
Wonsuk Choi
42ae5caee8
chore(angular-query-experimental/createBaseQuery): explain why 'typescript/no-unnecessary-type-assertion' is disabled for the 'refetch' wrapper (#12329) 2026-10-25 12:49:13 +09:00
Wonsuk Choi
faa41e9c46
refactor(angular-query-experimental/injectQueries): remove the unnecessary 'QueryObserverOptions' assertion and its 'oxlint-disable' comment (#12324) 2026-10-25 12:43:36 +09:00
Wonsuk Choi
715574d87b
test(preact-query/ErrorBoundary): name the 'react/no-did-update-set-state' rule in the bare 'oxlint-disable-next-line' comment (#12323) 2026-10-25 12:13:05 +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
8f9dfcb30c
feat(angular-query-experimental/injectDevtoolsPanel): add the 'theme' and 'hideDisabledQueries' options (#12316) 2026-10-25 10:45:35 +09:00
Ciarán Curley
4a7386a470
chore(deps): upgrade vitest to v5 (#12317)
Bump vitest and @vitest/coverage-istanbul to 5.0.5 (root and
query-test-utils) and @vitest/eslint-plugin to 1.6.28.

Vitest 5's typecheck collector treats any name ending in Test as a test function, so notifyManagerTest in query-core/src/__tests__/notifyManager.test-d.tsx was renamed to localNotifyManager.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 19:26:03 +01:00
Wonsuk Choi
9e4253766f
fix(angular-query-experimental/withDevtools): forward an unset 'theme' to the devtools so removing it falls back to the theme selected in the devtools Settings menu (#12315) 2026-10-24 03:05: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
Wonsuk Choi
f232b75e35
fix(solid-query-devtools): stop defaulting the 'theme' prop to 'system' so the theme chosen in the devtools settings applies when the prop is omitted (#12310) 2026-10-24 02:48:21 +09:00
Wonsuk Choi
a282bf807a
fix(vue-query-devtools): stop defaulting the 'theme' prop to 'system' so the theme chosen in the devtools settings applies when the prop is omitted (#12312) 2026-10-24 02:47:34 +09:00
Wonsuk Choi
aff30e36bd
fix(svelte-query-devtools): stop defaulting the 'theme' prop to 'system' so the theme chosen in the devtools settings applies when the prop is omitted (#12313) 2026-10-24 02:46:23 +09:00
Wonsuk Choi
86740aed31
test(vue-query/queryOptions): add type tests for 'useQueries', 'query' with 'enabled: false' and 'skipToken', and undefined 'initialData' (#12309) 2026-10-24 02:13:37 +09:00
Wonsuk Choi
394ea297d0
test(vue-query-devtools/devtools): add tests for forwarding option changes to the devtools instance after mount (#12308) 2026-10-24 01:57:24 +09:00
Wonsuk Choi
7a10cda3e4
chore(vue-query-devtools/package.json): restore the 'test:lib' script removed in the Vite 8 update (#12307) 2026-10-24 01:54:09 +09:00
Wonsuk Choi
bdd50314f7
test(svelte-query-devtools): extract shared test setup into 'beforeEach' (#12306) 2026-10-24 01:49:33 +09:00
Wonsuk Choi
e1547fd10a
test(solid-query/useInfiniteQuery): match the 'skipToken' test timer advances to the 'queryFn' sleep of 10ms (#12305) 2026-10-24 01:49:12 +09:00
autofix-ci[bot]
4ed6095096
ci: apply automated fixes 2026-10-23 09:46:30 +00:00
Wonsuk Choi
c5de051d61
fix(vue-query/queryClient): infer the data and error types of 'getQueryState' from a tagged query key (#11921)
* fix(vue-query/queryClient): infer the data and error types of 'getQueryState' from a tagged query key

* docs(vue-query): regenerate reference docs for 'getQueryState' overloads
2026-10-23 11:45:09 +02:00
Wonsuk Choi
0ab7c5ffb9
test(solid-query/suspense): replace the 'TODO(lukemurray)' comments with notes explaining why the state counts differ from react (#12300) 2026-10-23 17:58:21 +09:00
Wonsuk Choi
65801313dc
chore(oxlint.config): add 'netinfo' to the cspell words (#12299) 2026-10-23 17:44:56 +09:00
Wonsuk Choi
91b7e3b029
test(lit-query): replace 'reparent' with 'reconnect' in the provider switch test titles (#12298) 2026-10-23 17:44:45 +09:00
Wonsuk Choi
8c3c31a77d
test(vue-query/useQueryClient): use named imports and 'importOriginal' in the 'vue-demi' mock (#12297) 2026-10-23 17:44:33 +09:00
Wonsuk Choi
75b5b6cead
docs(vue-query/queryClient): remove the author tag from the 'invalidateQueries' comment (#12296) 2026-10-23 17:44:24 +09:00