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
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
3c540d3758
chore(examples/vue/persister/package.json): remove the unused '@tanstack/query-core' and '@tanstack/query-sync-storage-persister' dependencies (#12146) 2026-10-20 03:36:48 +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
243148eecf
refactor(examples/vue/{basic,dependent-queries,persister,simple}): migrate the components to '<script setup>' (#12144) 2026-10-20 03:10:17 +09:00
Wonsuk Choi
c76c0ffe44
refactor(examples/vue): type the 'isVisited' prop with 'PropType' and the visited posts set with 'Set<number>' (#12143) 2026-10-20 03:02:24 +09:00
Wonsuk Choi
d9e7648b94
refactor(examples/vue): declare the example types with 'type' in 'types.ts' instead of 'types.d.ts' (#12141)
* refactor(examples/vue/simple): type the repo data with a 'Repo' type in 'types.ts' and remove the unused 'types.d.ts'

* refactor(examples/vue): rename 'types.d.ts' to 'types.ts' and declare the types with 'type'
2026-10-20 02:56:15 +09:00
Wonsuk Choi
5aefeb72fc
refactor(examples/vue/persister): remove the commented-out 'staleTime' from the query client config (#12142) 2026-10-20 02:54:54 +09:00
Wonsuk Choi
2581366cd6
docs(examples/vue/nuxt3): replace the dead 'v3.nuxtjs.org' links with the Nuxt 3 docs on 'nuxt.com' (#12140) 2026-10-20 02:47:37 +09:00
Wonsuk Choi
5d67aa2ef0
fix(examples/vue): show 'Background Updating...' in the posts list and remove the unused 'refetch' (#12139) 2026-10-20 02:46:23 +09:00
Wonsuk Choi
46744e5b05
refactor(examples/svelte/playground): edit the 'initialFilter' prop directly in 'TodosList' to remove the 'state_referenced_locally' warning (#12125) 2026-10-20 02:42:34 +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
Wonsuk Choi
f7c89b64b0
chore(examples/vue/{2.6-basic,2.7-basic}): add a flat config and run 'test:eslint' (#12136)
* chore(examples/vue/{2.6-basic,2.7-basic}): add a flat config and run 'test:eslint'

* refactor(examples/vue/{2.6-basic,2.7-basic}): fix lint errors
2026-10-20 02:33:38 +09:00
Wonsuk Choi
c00eaa37b6
fix(examples/vue/persister): rename the heading from 'Vue Query - Basic' to 'Vue Query - Persister' (#12138) 2026-10-20 02:33:13 +09:00
Wonsuk Choi
a4414a7f5d
fix(examples/vue/simple): remove the stray quote before the error message (#12134) 2026-10-20 02:13:13 +09:00
Wonsuk Choi
b904739b0f
fix(examples/vue): throw on non-ok 'fetch' responses in the query functions (#12133) 2026-10-20 02:12:57 +09:00
github-actions[bot]
a8ecc8d42f
ci: Version Packages (#12128) release-2026-10-19-1659 @tanstack/svelte-query@6.3.5 @tanstack/preact-query@5.104.5 @tanstack/react-query@5.104.5 @tanstack/solid-query@5.104.5 @tanstack/react-query-persist-client@5.104.5 @tanstack/react-query-next-experimental@5.104.5 @tanstack/svelte-query-devtools@6.3.5 @tanstack/react-query-devtools@5.104.5 @tanstack/svelte-query-persist-client@6.3.5 @tanstack/angular-query-experimental@5.104.5 @tanstack/query-sync-storage-persister@5.104.5 @tanstack/query-broadcast-client-experimental@5.104.5 @tanstack/solid-query-persist-client@5.104.5 @tanstack/solid-query-devtools@5.104.5 @tanstack/query-persist-client-core@5.104.5 @tanstack/lit-query@0.2.30 @tanstack/query-devtools@5.104.5 @tanstack/preact-query-devtools@5.104.5 @tanstack/vue-query-devtools@6.3.5 @tanstack/preact-query-persist-client@5.104.5 @tanstack/vue-query@5.104.5 @tanstack/eslint-plugin-query@5.104.5 @tanstack/query-core@5.104.5 @tanstack/query-async-storage-persister@5.104.5
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-19 18:54:46 +02:00
Dominik Dorfmeister 🔮
f608f933a3
fix(query-core): use supplied options for optimistic fetches (#12131) 2026-10-19 18:42:05 +02: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
Wonsuk Choi
959f65e2dd
refactor(examples/svelte/optimistic-updates): move the fetchers into 'src/lib/api.ts' and share the todos query with 'queryOptions' (#12124) 2026-10-19 10:39:17 +09:00
Wonsuk Choi
2653d67fd4
refactor(examples/svelte/load-more-infinite-scroll): type the planets response and move the query into 'src/lib/api.ts' with 'infiniteQueryOptions' (#12123) 2026-10-19 10:26:57 +09:00
Wonsuk Choi
ff47e18732
fix(examples/svelte/load-more-infinite-scroll): show 'Loading more...' only while fetching the next page instead of on any background refetch (#12121) 2026-10-19 10:15:53 +09:00
Wonsuk Choi
9e6e51c73c
refactor(examples/svelte/optimistic-updates): infer the 'onError' parameter types instead of 'any' and rename 'context' to 'onMutateResult' (#12120) 2026-10-19 10:15:41 +09:00
Wonsuk Choi
9423149102
fix(examples/svelte/{basic,ssr}): remove the '!postId' check that kept 'Loading...' next to the error for non-numeric post ids (#12119) 2026-10-19 10:15:30 +09:00
Wonsuk Choi
4e413ae8bd
docs(svelte/ssr): update the SvelteKit snippets to Svelte 5 runes with 'PageProps' and 'LayoutProps', add the default 'staleTime' and the missing 'noop' import (#12115) 2026-10-19 10:04:54 +09:00
Wonsuk Choi
adb932ea11
refactor(examples/svelte/star-wars): type the API responses and share the queries with 'queryOptions' (#12116) 2026-10-19 02:31:54 +09:00
Wonsuk Choi
ae6266d571
fix(examples/svelte/playground): show 'Saved!' only after a successful mutation instead of while idle (#12114) 2026-10-19 02:22:15 +09:00
Wonsuk Choi
a8fe350b8a
fix(examples/svelte/star-wars): throw on non-ok 'fetch' responses in the API functions (#12113) 2026-10-19 02:20:01 +09:00
Wonsuk Choi
3119e0c6a0
refactor(examples/svelte/ssr): read the cached post with 'postQueryOptions(id).queryKey' instead of a hard-coded key (#12112) 2026-10-19 02:13:15 +09:00
Wonsuk Choi
86c01185a0
refactor(examples/svelte/auto-refetching): move the fetchers into 'src/lib/api.ts' and share the todos query with 'queryOptions' (#12111) 2026-10-19 02:11:36 +09:00
Wonsuk Choi
69457a9e57
fix(examples/svelte/optimistic-updates): render 'Background Updating...' instead of a leftover JSX ternary (#12107) 2026-10-19 02:09:49 +09:00
Wonsuk Choi
d8ab863425
refactor(examples/svelte/basic): share the post queries with 'queryOptions' in 'src/lib/queries.ts' (#12110) 2026-10-19 02:09:21 +09:00
Wonsuk Choi
306fcda84d
fix(examples/svelte/optimistic-updates): throw on non-ok responses so a failed create rolls back the optimistic update (#12106) 2026-10-19 02:07:38 +09:00
Wonsuk Choi
d0a1dff1ba
fix(examples/svelte): throw on non-ok 'fetch' responses in the query and mutation functions (#12109) 2026-10-19 02:03:47 +09:00
Wonsuk Choi
7592b2f18a
fix(examples/solid/offline): throw the response text on non-ok 'fetch' responses and show query errors in 'List' and 'Detail' (#12099)
* fix(examples/solid/offline): throw the response text on non-ok 'fetch' responses in the API functions

* fix(examples/solid/offline): show query errors in 'List' and 'Detail' instead of a blank page
2026-10-19 01:32:15 +09:00
Wonsuk Choi
2e86afff57
refactor(examples/solid/default-query-function): type the posts with a 'Post' type instead of 'any' (#12105) 2026-10-19 01:31:30 +09:00
Wonsuk Choi
633d8e4bac
docs(solid): replace the deprecated 'route.load' with 'route.preload' in the SSR guide and the solid-start-streaming example (#12104) 2026-10-19 01:31:14 +09:00
Wonsuk Choi
aa77cd7f62
fix(examples/solid/astro): throw on non-ok 'fetch' responses and show a pokemon load error through an 'ErrorBoundary' (#12103) 2026-10-19 01:30:55 +09:00
Wonsuk Choi
f9d7ec0997
refactor(examples/solid/basic): remove the always-true 'enabled' and the always-false '!props.postId' check in 'Post' (#12101) 2026-10-19 01:15:15 +09:00