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

579 commits

Author SHA1 Message Date
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
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
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
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)
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
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
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
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
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
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
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
Wonsuk Choi
fd814043dd
refactor(examples/react/suspense): share the project queries between prefetching and 'useSuspenseQuery' with 'queryOptions' (#11990) 2026-10-13 00:49:51 +09:00
Wonsuk Choi
1aeece38a2
refactor(examples/react/nextjs): share the posts query between 'getStaticProps' and 'usePosts' with 'queryOptions' (#11989) 2026-10-13 00:32:18 +09:00
Wonsuk Choi
0a3dfa0f0d
refactor(examples/react): move 'QueryClient' into '_app' with 'React.useState' (#11993) 2026-10-12 23:38:45 +09:00
Wonsuk Choi
1ea8928639
chore(examples/react): remove the 'eslint' option that Next.js 16 no longer supports from 'next.config.js' (#11991) 2026-10-12 22:26:07 +09:00
github-actions[bot]
b699b52d60
ci: Version Packages (#11849)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-11 21:32:27 +02:00
Wonsuk Choi
98fd5936f0
chore(examples/react): add '@types/node' to the Next.js examples that relied on the root copy (#11977) 2026-10-12 03:40:40 +09:00
Wonsuk Choi
3a0e92744d
chore(examples/react): add '.stackblitzrc' so StackBlitz runs the 'dev' script in the Next.js examples (#11976) 2026-10-12 03:35:35 +09:00
Wonsuk Choi
fd820ed30d
fix(examples/{react,solid}/offline): regenerate the msw worker and render after it starts (#11974) 2026-10-12 02:35:05 +09:00
Wonsuk Choi
d81b4e41d6
fix(examples/react/offline): type the movie query and mutation with 'queryOptions' and 'mutationOptions' (#11973)
* fix(examples/react/offline): type the movie query and mutation with 'queryOptions' and 'mutationOptions'

* fix(examples/react/offline): type the movie list response with only 'id' and 'title'
2026-10-12 02:34:19 +09:00
Wonsuk Choi
a6a46a2eab
fix(examples/react/react-native): type the movie list items as 'Movie' (#11971) 2026-10-12 02:26:02 +09:00
Wonsuk Choi
d2d3e064a0
chore(examples/react): raise 'target' from 'ES5' to 'ES2017' in the Next app examples (#11969) 2026-10-12 01:53:40 +09:00
Wonsuk Choi
3ae9fb0c3c
fix(examples/react/algolia): compute the next page from 'lastPageParam' and the optional 'nbPages' (#11967) 2026-10-11 23:41:43 +09:00
Wonsuk Choi
70194b8a7c
chore(examples/react): add 'vite-env.d.ts' so CSS imports type-check under TS 6 (#11968) 2026-10-11 23:41:19 +09:00
Wonsuk Choi
008b750034
fix(examples/react/prefetching): subscribe to prefetched characters instead of forcing a rerender (#11966) 2026-10-11 23:35:03 +09:00
Wonsuk Choi
11ad4e012a
fix(examples/react/infinite-query-with-max-pages): extract a typed 'fetchProjects' for 'queryFn' (#11965) 2026-10-11 23:34:39 +09:00
Wonsuk Choi
4e21da774f
fix(examples/react): narrow 'req.query' values in the Next API routes (#11963)
* fix(examples/react): narrow 'req.query' values in the Next API routes

* fix(examples/react): skip empty 'add' values and keep 'parseInt' for 'req.query' in the Next API routes
2026-10-11 23:09:43 +09:00
Wonsuk Choi
dee1679bf4
chore(examples/react): remove unused 'React' imports (#11962) 2026-10-11 11:42:04 +09:00
Wonsuk Choi
3a66faac11
fix(examples/react): remove the 'exact' prop that react-router v6 no longer supports (#11961) 2026-10-11 11:41:31 +09:00
Wonsuk Choi
fb65258385
chore(examples/react): add '@types/react' to the examples that relied on the root one (#11960) 2026-10-11 10:45:38 +09:00
Wonsuk Choi
22621e773c
chore(examples/react): enable 'allowJs' so typed linting covers 'eslint.config.js' (#11950) 2026-10-11 00:51:13 +09:00
Wonsuk Choi
42745443cf
chore(nx.json): build the dependencies before 'test:eslint' (#11951) 2026-10-10 23:58:26 +09:00
Wonsuk Choi
bef879eb56
chore(examples/react): run 'test:eslint' in 'algolia', 'basic-graphql-request' and 'shadow-dom' (#11948)
* chore(examples/react): run 'test:eslint' in 'algolia', 'basic-graphql-request' and 'shadow-dom'

* refactor(examples/react/algolia): derive 'hits' with 'select' instead of spreading the query result
2026-10-10 23:03:54 +09:00
github-actions[bot]
29859ae60c
ci: Version Packages (#11806)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-02 12:02:10 +02:00
Wonsuk Choi
c51bb623bb
chore(*): declare '@eslint-react/eslint-plugin' in the react packages and examples that use it instead of the root (#11726) 2026-09-29 11:56:40 +09:00
github-actions[bot]
d4033eb1e5
ci: Version Packages (#11651)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-26 13:53:37 +10:00
Lachlan Collins
5279b05211
chore(deps): update Vite from v6 to v8 (#11650)
* chore(deps): update Vite from v6 to v8

* Fix angular, vue-devtools

* Fix vue-devtools

* Fix knip, remove @tanstack/vite-config

* Update eslint config

* Disable false eslint errors

* Fix remaining errors

* Fix knip, dedupe esbuild

* Add changeset
2026-09-26 12:23:02 +10:00
github-actions[bot]
fe053bf8e9
ci: Version Packages (#11612)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-26 10:13:58 +10:00
Lachlan Collins
f00aad602e
chore(deps): update dev dependencies (#11640)
chore(deps): update many dev dependencies
2026-09-26 07:30:31 +10:00