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

627 commits

Author SHA1 Message Date
Wonsuk Choi
bf1de7dc21
refactor(examples/react/algolia): inline the 'useAlgolia' hook that only wraps 'useInfiniteQuery' (#12405) 2026-10-27 00:20:23 +09:00
github-actions[bot]
5cc606e2e8
ci: Version Packages (#12301)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-26 10:28:34 +01:00
Wonsuk Choi
06d1705a58
chore(deps): update '@typescript-eslint/*' to '^8.72.0' in the catalog and examples (#12388) 2026-10-26 16:33:55 +09:00
Wonsuk Choi
2b5b6417fa
chore(examples/*/eslint.config): use 'flat/recommended-strict' from '@tanstack/eslint-plugin-query' (#12385) 2026-10-26 02:55:51 +09:00
Wonsuk Choi
772bd1144e
refactor(examples/react/nextjs-suspense-streaming): move the data layer into 'services/wait' with a query factory (#12384) 2026-10-26 02:41:20 +09:00
Wonsuk Choi
437d3bec76
style(examples): write durations in 'count * unit * 1000' order (#12383) 2026-10-26 02:29:26 +09:00
Wonsuk Choi
f69600ae69
refactor(examples/{react,solid}/offline): inline 'useMovie' into the 'Detail' component (#12379) 2026-10-26 02:15:18 +09:00
Wonsuk Choi
a52f4e9777
refactor(examples/react/{basic,basic-graphql-request,eslint-legacy,nextjs,nextjs-suspense-streaming}): inline custom hooks that only wrap 'useQuery' or 'useSuspenseQuery' (#12377) 2026-10-26 02:15:02 +09:00
Wonsuk Choi
516b870c9c
refactor(examples/react/{nextjs-app-optimistic-updates,nextjs-app-prefetching}): move the data layer into 'services/{domain}' with a query factory (#12356) 2026-10-26 00:11:30 +09:00
Wonsuk Choi
db886cee9e
refactor(examples/react/{offline,react-router}): move the data layer into 'services/{domain}' with a query factory (#12355) 2026-10-26 00:11:22 +09:00
Wonsuk Choi
dce0498872
refactor(examples/react/{auto-refetching,playground}): move the data layer into 'services/todos' with query and mutation factories (#12354) 2026-10-26 00:11:13 +09:00
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
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
github-actions[bot]
a8ecc8d42f
ci: Version Packages (#12128)
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
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
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
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
Wonsuk Choi
2e7c288ed2
refactor(examples/react/shadow-dom): type the dogs response and move the query into 'api.ts' with 'queryOptions' (#12072) 2026-10-18 21:01:16 +09:00
Wonsuk Choi
0a37fa6f23
refactor(examples/react/nextjs-app-optimistic-updates): share the todos query and fetchers with 'queryOptions' (#12071) 2026-10-18 21:00:55 +09:00
Wonsuk Choi
5b7f490130
refactor(examples/react/prefetching): type the character query and share it with 'queryOptions' (#12070) 2026-10-18 14:09:05 +09:00
Wonsuk Choi
090fb4a417
refactor(examples/react/star-wars): type the API responses and share the queries with 'queryOptions' (#12069) 2026-10-18 13:40:28 +09:00
Wonsuk Choi
256abf45f0
refactor(examples/react/rick-morty): type the API responses and share the queries with 'queryOptions' (#12068) 2026-10-18 13:40:06 +09:00
Wonsuk Choi
ffb1fbb62d
chore(examples/react): update '@types/react' and '@types/react-dom' to '^19' in the examples still on '^18' (#12067) 2026-10-18 13:39:47 +09:00
github-actions[bot]
12199722dc
ci: Version Packages (#12062)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-17 19:51:17 +02:00
Wonsuk Choi
5817e6f698
fix(examples/react): throw on non-ok 'fetch' responses in the query and mutation functions (#12058) 2026-10-17 18:06:09 +02:00
Wonsuk Choi
ec80fda0c1
docs(framework/react/overview): throw on a non-ok 'fetch' response in the example, and in 'examples/react/simple' (#12057) 2026-10-17 18:03:41 +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