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

5,683 commits

Author SHA1 Message Date
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
Wonsuk Choi
4ae64479f4
fix(examples/solid/basic-graphql-request): type post ids as strings and pass the id as a GraphQL variable (#12100) 2026-10-19 01:14:41 +09:00
Wonsuk Choi
c10c1f770c
fix(examples/solid): throw on non-ok 'fetch' responses in the query functions (#12098) 2026-10-19 01:13:50 +09:00
Wonsuk Choi
c1296c1745
fix(examples/preact/simple): throw on non-ok 'fetch' responses in the query function (#12097) 2026-10-19 01:13:30 +09:00
Wonsuk Choi
de10bb0f9c
chore(examples/react/react-native): replace the removed 'expo eject' script with 'expo prebuild' and drop the deprecated global 'expo-cli' install step (#12096) 2026-10-19 01:13:14 +09:00
Wonsuk Choi
0e7d125f0f
refactor(examples/solid/astro): type the pokemon responses and move the queries into 'src/lib/api.ts' with 'queryOptions' (#12102) 2026-10-19 00:46:59 +09:00
Wonsuk Choi
ddff3a70be
fix(examples/react/react-native): register 'NetInfo' through 'onlineManager.setEventListener' so connected devices are not treated as offline while reachability is unknown (#12091) 2026-10-18 23:02:32 +09:00
Wonsuk Choi
85feb09419
refactor(examples/react/react-native): refetch only active stale queries in 'useRefreshOnFocus' as in the React Native guide (#12092) 2026-10-18 23:02:22 +09:00
Wonsuk Choi
3c648e4dd8
feat(examples/react/react-native): render 'ReactQueryDevtools' on web through a platform-specific 'Devtools' component (#12093) 2026-10-18 23:01:44 +09:00
Wonsuk Choi
a8eeff39fe
refactor(examples/react/react-native): replace the deprecated 'Paragraph' and 'Title' with 'Text' variants from 'react-native-paper' (#12094) 2026-10-18 23:01:33 +09:00
Wonsuk Choi
af1e58044a
refactor(examples/react/eslint-plugin-demo): rename the 'useApiClient' stub to 'getApiClient' since it is called outside of hooks (#12089) 2026-10-18 22:28:44 +09:00
Wonsuk Choi
c57cf557c1
refactor(examples/react/basic): remove the always-true 'enabled' and the always-false '!postId' check in 'Post' (#12088) 2026-10-18 22:28:38 +09:00
Wonsuk Choi
e39f330fa3
fix(examples/react/basic-graphql-request): type post ids as strings and pass the id as a GraphQL variable (#12087) 2026-10-18 22:28:32 +09:00
Wonsuk Choi
988e69ebfd
fix(examples/react/algolia): show the search error and use a 'button' that is disabled while fetching for loading more (#12086) 2026-10-18 22:28:25 +09:00
Wonsuk Choi
0fba30fbea
fix(examples/react/load-more-infinite-scroll): move the projects query into 'infiniteQueryOptions' in 'src/lib' and type 'nextId' and 'previousId' as nullable (#12085) 2026-10-18 22:28:18 +09:00
Wonsuk Choi
7328d02a36
fix(examples/react/pagination): share the projects query with 'queryOptions' in 'src/lib' so the next page prefetch respects 'staleTime' (#12084) 2026-10-18 22:28:11 +09:00
Wonsuk Choi
d338489e0a
fix(examples/react/playground): show 'Saved!' only after a successful mutation instead of while idle (#12083) 2026-10-18 22:28:05 +09:00
Wonsuk Choi
f0dcdca510
fix(examples/react/offline): show query errors in 'List' and 'Detail' and remove the 'MovieError' element that 'react-location' never renders (#12082) 2026-10-18 22:27:59 +09:00
Wonsuk Choi
3ff2ec1678
fix(examples/react/nextjs-app-optimistic-updates): stream the prefetched todos with 'useSuspenseQuery' and a 'React.Suspense' boundary (#12081) 2026-10-18 22:27:53 +09:00
Wonsuk Choi
68b655af86
docs({react,preact}/quick-start): use 'createRoot' in the React example and keep 'render' from 'preact' in the Preact example (#12080) 2026-10-18 22:27:47 +09:00
Wonsuk Choi
116687942b
docs(react/guides/ssr): add the default 'staleTime' to the 'Remove boilerplate' '_app' example (#12079) 2026-10-18 22:27:40 +09:00
Wonsuk Choi
ccbd483363
docs(react/guides/mutations): use 'createAsyncStoragePersister' instead of the deprecated 'createSyncStoragePersister' (#12078) 2026-10-18 22:27:33 +09:00
Wonsuk Choi
cd9e573ea9
fix(examples/react/nextjs): set a default 'staleTime' so the statically generated posts are not refetched right after hydration (#12077) 2026-10-18 22:27:27 +09:00
Wonsuk Choi
9d93dc57d1
refactor(examples/react/nextjs-app-prefetching): add 'shouldRedactErrors' to the query client as in the advanced SSR guide (#12076) 2026-10-18 22:27:20 +09:00
Wonsuk Choi
daf7444f91
fix(examples/react/prefetching): show the error instead of an empty list or blank details when fetching characters fails (#12075) 2026-10-18 22:27:14 +09:00
Wonsuk Choi
19ad6d7fd4
fix(examples/react/nextjs): show the error in 'PostList' instead of an empty list when fetching posts fails (#12074) 2026-10-18 22:27:08 +09:00
Wonsuk Choi
d3aac58fbd
docs(examples/react/prefetching): replace the unreachable '[user]/[repo]' page with a character details page that reads the prefetched query (#12073) 2026-10-18 21:01:44 +09:00