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
0992a92914
fix(react-query-devtools): create the devtools instance lazily with 'useState' initializer instead of on every render (#11722) 2026-10-17 18:02:24 +02:00
Wonsuk Choi
2bb82dfd23
fix(svelte-query/HydrationBoundary): make 'options' and 'queryClient' props optional (#12030) 2026-10-17 18:01:46 +02:00
Paul Nguyen
2ce51902de
fix(preact-query): do not go into optimistic fetching state when not subscribed (#11259)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-17 17:42:13 +02:00
Wonsuk Choi
a636462b85
refactor(examples/react/suspense): prefetch the projects in the click handler instead of inside the 'setShowProjects' updater (#12056) 2026-10-17 11:43:26 +09:00
Wonsuk Choi
9fbf293807
fix(examples/react/nextjs-app-optimistic-updates): return the invalidation promise from 'onSettled' so the pending todo stays until the refetch finishes (#12055) 2026-10-17 11:36:37 +09:00
Wonsuk Choi
f38e6271b4
chore(*): update '@tanstack/typedoc-config' to v0.3.5 (#12035)
* chore(scripts/generate-docs): read type alias bodies whose type parameters have defaults

* chore(*): update '@tanstack/typedoc-config' to v0.3.5
2026-10-17 11:14:03 +09:00
Wonsuk Choi
584fd64144
refactor(examples/react/react-router): replace the deprecated 'ensureQueryData' with 'query' and 'staleTime: 'static'' in the loaders (#12052) 2026-10-17 11:01:52 +09:00
Wonsuk Choi
83b0831c27
fix(examples): rename the auto-refetching title from 'stale-time' to 'refetchInterval', which is the option it sets (#12051) 2026-10-17 04:01:34 +09:00
Wonsuk Choi
b71ff31696
fix(examples/react/offline): throw on non-ok responses so failures surface the server's message instead of a JSON parse error (#12050) 2026-10-17 03:54:46 +09:00
Wonsuk Choi
6f1fa2b843
fix(examples/react/chat): submit through a 'form' so 'Enter' cannot send an empty question (#12049) 2026-10-17 03:04:42 +09:00
Wonsuk Choi
9583088120
fix(examples/react/batching): show the character's 'status' instead of the query 'status' (#12045) 2026-10-17 03:01:30 +09:00
Wonsuk Choi
116818a610
fix(examples/react/rick-morty): read the episode's 'air_date' instead of the nonexistent 'airDate' (#12046) 2026-10-17 03:01:20 +09:00
Wonsuk Choi
817f823b9e
fix(examples/react/chat): give each question an 'id' so repeated questions get their own React key and query (#12047) 2026-10-17 03:01:08 +09:00
Wonsuk Choi
8ca99d1e57
fix(examples/react/chat): use camelCase 'strokeWidth', 'strokeLinecap' and 'strokeLinejoin' on the send icon (#12048) 2026-10-17 03:01:00 +09:00
Wonsuk Choi
cc185b0807
docs(eslint/no-void-query-fn): note that the rule requires typed linting (#12042) 2026-10-17 02:40:13 +09:00
Wonsuk Choi
fceed3463c
docs(eslint/eslint-plugin-query): add an 'Oxlint' section for using the plugin through 'jsPlugins' (#12041) 2026-10-17 02:39:57 +09:00
Wonsuk Choi
e90c0bdb83
chore(integrations): remove the unused legacy '.eslintrc.cjs' configs (#12040)
* chore(integrations): remove the unused legacy '.eslintrc.cjs' configs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-17 02:21:55 +09:00
Wonsuk Choi
eb94a5b445
chore(examples/react/react-native): add a flat config and run 'test:eslint' (#12039)
* chore(examples/react/react-native): add a flat config and run 'test:eslint'

* refactor(examples/react/react-native): fix lint errors
2026-10-17 01:08:08 +09:00
Wonsuk Choi
0e19ad7c33
chore(oxlint.config): ignore 'examples' and 'integrations', which are not linted by Oxlint (#12038) 2026-10-17 01:00:11 +09:00
Wonsuk Choi
e75ecbedf2
refactor(examples/react/react-native): pass the movie title in route params and show the cached list item as 'placeholderData' (#12037)
* refactor(examples/react/react-native): pass the movie title in route params and show the cached list item as 'placeholderData'

* refactor(examples/react/react-native): check 'isError' instead of 'error' before rendering the data
2026-10-17 00:57:02 +09:00
github-actions[bot]
ee47993724
ci: Version Packages (#11998) release-2026-10-15-0754 @tanstack/react-query-persist-client@5.104.3 @tanstack/query-core@5.104.3 @tanstack/svelte-query@6.3.3 @tanstack/svelte-query-persist-client@6.3.3 @tanstack/svelte-query-devtools@6.3.3 @tanstack/vue-query@5.104.3 @tanstack/solid-query@5.104.3 @tanstack/solid-query-persist-client@5.104.3 @tanstack/solid-query-devtools@5.104.3 @tanstack/angular-query-experimental@5.104.3 @tanstack/eslint-plugin-query@5.104.3 @tanstack/lit-query@0.2.28 @tanstack/preact-query-devtools@5.104.3 @tanstack/preact-query-persist-client@5.104.3 @tanstack/preact-query@5.104.3 @tanstack/query-async-storage-persister@5.104.3 @tanstack/react-query@5.104.3 @tanstack/query-devtools@5.104.3 @tanstack/query-broadcast-client-experimental@5.104.3 @tanstack/query-persist-client-core@5.104.3 @tanstack/query-sync-storage-persister@5.104.3 @tanstack/react-query-devtools@5.104.3 @tanstack/react-query-next-experimental@5.104.3 @tanstack/vue-query-devtools@6.3.3
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-15 09:50:17 +02:00
autofix-ci[bot]
acd8bbc984
ci: apply automated fixes 2026-10-15 07:39:46 +00:00
Sviat Barbutsa
0f15bc925d
fix(query-core): preserve union narrowing in setQueryData updaters (#11935)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-15 09:36:14 +02:00
Wonsuk Choi
a21e17b5e2
chore(examples/svelte/playground): add a flat config and run 'test:eslint' (#12029)
* chore(examples/svelte/playground): add a flat config and run 'test:eslint'

* refactor(examples/svelte/playground): fix lint errors
2026-10-15 15:22:16 +09:00
Wonsuk Choi
9cce260056
fix(examples/svelte/playground): keep unsaved edits out of the query cache and apply the 'staleTime' and 'gcTime' inputs (#11986) 2026-10-15 14:31:10 +09:00
Wonsuk Choi
eea734d168
chore(examples/react): add the missing 'react' prefix to package names (#12028) 2026-10-15 13:42:43 +09:00
Wonsuk Choi
8b48d0253b
chore(examples/vue): add 'test:types' to type-check the examples in CI (#12022) 2026-10-15 10:14:24 +09:00
Wonsuk Choi
27346620ad
docs(*): exclude members declared in 'node_modules' from generated reference docs (#12014) 2026-10-15 10:09:02 +09:00
Wonsuk Choi
98451e1b3c
chore(examples/react): add 'test:types' to type-check the examples in CI (#12020)
* chore(examples/react): add 'test:types' to type-check the examples in CI

* chore(examples/react): run 'next typegen' before 'tsc' in the remaining Next.js examples
2026-10-15 10:01:28 +09:00
Wonsuk Choi
682e00144f
chore(examples/svelte): add 'test:types' to type-check the examples in CI (#12019) 2026-10-15 09:53:04 +09:00
Wonsuk Choi
e26971ebf9
chore(examples/solid): add 'test:types' to type-check the examples in CI and move 'astro check' out of 'build' (#12018) 2026-10-15 09:52:44 +09:00
Wonsuk Choi
6768f4e0bf
chore(examples/lit): move the type check from 'build' to 'test:types' (#12017) 2026-10-15 09:52:08 +09:00
Wonsuk Choi
dc90144cd0
chore(examples/preact): add 'test:types' to type-check the example in CI (#12016) 2026-10-15 09:51:46 +09:00
Wonsuk Choi
c87cdcb962
chore(examples/angular): add 'test:types' to type-check the examples in CI (#12015) 2026-10-15 09:51:32 +09:00
Wonsuk Choi
8d88a1725d
chore(nx.json): build the dependencies before 'test:types' (#12021) 2026-10-15 09:08:15 +09:00
Wonsuk Choi
a8af0e243a
refactor(examples/lit/ssr): replace the deprecated 'prefetchQuery' with 'query' in the server render (#11992) 2026-10-14 11:59:25 +09:00
Wonsuk Choi
5959fdb80f
fix(examples/react/eslint-plugin-demo): pass the dependencies as arguments so the 'allowlist' demo is checked by 'exhaustive-deps' (#12012) 2026-10-14 11:42:31 +09:00
Wonsuk Choi
e3e6b466a9
refactor(examples/react/batching): rename the parsed 'ids' in 'onChange' to 'parsedIds' to avoid shadowing the state (#12013) 2026-10-14 11:23:20 +09:00
Wonsuk Choi
d5b265a547
chore(examples/react/playground): replace the legacy '.eslintrc' with a flat config and run 'test:eslint' (#12011)
* chore(examples/react/playground): replace the legacy '.eslintrc' with a flat config and run 'test:eslint'

* refactor(examples/react/playground): fix lint errors
2026-10-14 11:07:53 +09:00
Wonsuk Choi
6a4bfe5192
fix(examples/react/playground): keep only the edited fields as local state and apply the initial query defaults on creation (#11985)
* fix(examples/react/playground): keep only the edited fields as local state and apply the initial query defaults on creation

* fix(examples/react/playground): use 'defaultValue' for the numeric controls so they can be cleared while editing
2026-10-14 10:27:00 +09:00
Wonsuk Choi
fa49ddde37
fix(examples/vue/dependent-queries): replace 'enabled' with 'skipToken' to type the author query (#12010) 2026-10-14 10:16:39 +09:00
Wonsuk Choi
8818228c52
fix(examples/svelte/star-wars): type route params with 'PageProps' instead of 'page.params' (#12009) 2026-10-14 10:15:41 +09:00
Wonsuk Choi
ddcde7d5ad
chore(examples): use 'defineConfig' from 'eslint/config' and enable '@ts-check' in 'eslint.config.js' (#12008) 2026-10-14 10:01:19 +09:00
Wonsuk Choi
41c178b285
chore(examples/vue): add a flat config and run 'test:eslint' (#12003)
* chore(examples/vue): add a flat config and run 'test:eslint'

* refactor(examples/vue): fix lint errors
2026-10-14 09:45:36 +09:00
Wonsuk Choi
0fbbc62136
chore(examples/svelte): add a flat config and run 'test:eslint' (#12002)
* chore(examples/svelte): add a flat config and run 'test:eslint'

* refactor(examples/svelte): fix lint errors

* chore(examples/svelte): run 'svelte-kit sync' before 'eslint' in 'test:eslint'
2026-10-13 11:59:48 +09:00
Wonsuk Choi
1836f7924c
chore(examples/react): replace the legacy '.eslintrc' with a flat config and run 'test:eslint' (#11995)
* chore(examples/react): replace the legacy '.eslintrc' with a flat config and run 'test:eslint'

* refactor(examples/react): fix lint warnings
2026-10-13 09:54:26 +09:00
Wonsuk Choi
668847f1a3
chore(deps): update '@typescript-eslint/parser' and '@typescript-eslint/rule-tester' catalog to '^8.71.1' (#11996) 2026-10-13 09:44:24 +09:00
Dami Oyeniyi
67705fd6ad
fix(vue-query-devtools): update client when prop changes (#11413) 2026-10-12 21:59:13 +02:00
Max Freedom Pollard
ed4d849731
fix(query-persist-client-core/createPersister): await 'storage.setItem' when persisting a query (#11410) 2026-10-12 21:54:43 +02:00
Wonsuk Choi
70c652b8e4
chore(examples/react/eslint-legacy): add 'plugin:@typescript-eslint/recommended' and declare the packages used by '.eslintrc' (#11994) 2026-10-13 00:50:38 +09:00