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

5,194 commits

Author SHA1 Message Date
Alex Errant
12d4542f25
docs: Document staleTime's default (#8561) 2025-01-24 14:53:38 +01:00
Favour Ohanekwu
322760bf43
docs(framework): update Next.js and Svelte documentation links (#8572)
* docs(svelte): fix writable stores tutorial link

Update the Svelte stores tutorial link to the correct URL in the Svelte Query overview documentation.

The previous link to writable-stores was broken or outdated.

* docs(ssr): update Next.js documentation links to latest version

Update outdated Next.js documentation links in the SSR guide to point to
the latest App Router documentation paths, ensuring users are directed to
the most current and relevant documentation.

Links updated:
- rewrites feature
- automatic static optimization
- rewrite parameters
2025-01-23 17:50:04 +01:00
Paul Nodet
cd88c9cd64
docs: fix invalid openapi-react-query url (#8568) 2025-01-23 07:13:33 +01:00
renovate[bot]
4a0a129803
chore(deps): update dependency vite to v5.4.12 [security] (#8563)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-22 06:01:46 +00:00
Ruud Andriessen
397fcfc141
docs: prefer using satisfies instead of type cast in persistQueryClient docs (#8551) 2025-01-20 17:26:19 +01:00
Tanner Linsley
d4d246685c release: v5.64.2 v5.64.2 2025-01-19 08:45:19 +00:00
Seyed Mohammad Asadi
3e3fba997b
fix(react-query): add missing subscribed option to UseInfiniteQueryOptions (#8546)
* fix(react-query): add missing subscribed option to UseInfiniteQueryOptions

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-19 09:35:18 +01:00
Lachlan Collins
f04dd199ea
chore(deps): replace rimraf with premove (#8532)
* chore(deps): replace rimraf with premove

* Fix command

* Fix sherif
2025-01-14 08:32:22 +11:00
Tanner Linsley
e3e8814ea3 release: v5.64.1 v5.64.1 2025-01-13 13:23:39 +00:00
Neef Rehman
8d174c8f92
fix(types): support both Array and ReadonlyArray for typed query and mutation keys (#8529)
* fix(types): support both `Array` and `ReadonlyArray` for typed query and mutation keys

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-13 14:18:23 +01:00
Tanner Linsley
4a589bf279 release: v5.64.0 v5.64.0 2025-01-11 18:59:20 +00:00
Ciarán Curley
8ddebc6640
docs(react-query): highlight per component select pattern for query options (#8522)
* docs(react-query): per component select pattern

highlight per component select pattern for query options

* Update docs/framework/react/guides/query-options.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-11 19:55:57 +01:00
Neef Rehman
fd500a4078
feat(types): support typing QueryKey and MutationKey via Register (#8521)
* feat(types): support typing QueryKey and MutationKey via Register

* ci: apply automated fixes

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-10 16:47:08 +01:00
Przemek Maszczynski
690fd2ae08
docs(react-query): Add import statement with skipToken to the docs (#8519)
* docs(react-query): Add import statement with skipToken to the docs

Makes more obvious how should the skipToken be used

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-10 13:49:47 +01:00
Tanner Linsley
564e549687 release: v5.63.0 v5.63.0 2025-01-08 14:21:54 +00:00
Dominik Dorfmeister
e2bc2165fa
feat(react-query): allow useQuery and useQueries to unsubscribe from the query cache with an option (#8348)
* feat(react-query): allow useQuery and useQueries to unsubscribe from the query cache with an option

* test: subscribed

* fix: revert calling getOptimisticResult later

* docs(react): update the react-native.md section (#8506)

* update the doc

* update the doc

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* docs: reference

---------

Co-authored-by: Florian De la comble <f.delacomble@gmail.com>
2025-01-08 15:17:08 +01:00
Tanner Linsley
3c5d8e348c release: v5.62.16 v5.62.16 2025-01-06 19:15:35 +00:00
nick-avi-say
e664d2274c
fix(QueriesObserver): include default options on duplicate query, queryHash check (#8432)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-06 19:17:18 +01:00
Alex Liu
3104854c1c
fix(vue-query): ensure queryKey match the current value of ref used inside (#8443)
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2025-01-04 14:31:11 +01:00
Ifeanyi Aladi
f6757a603a
fix(react-query): eslint-plugin-query now working with vanilla js (#8322)
* fix: eslint-plugin-query not working with vanilla js

* Update packages/eslint-plugin-query/src/utils/detect-react-query-imports.ts

* Disabled linter for conditional statement

This should make it pass the eslint-plugin test

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2025-01-04 12:32:59 +01:00
Dominik Dorfmeister
d08d115d92 test: add a test to ensure new meta gets accepted by fetchQuery 2025-01-04 12:25:59 +01:00
Tomáš Vojtášek
9a0ca9bf82
fix(eslint-plugin-query): export Plugin interface (#8392)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-04 12:24:54 +01:00
Tanner Linsley
c91c590a82 release: v5.62.14 v5.62.14 2025-01-03 19:50:18 +00:00
MINSEONG KIM
0503282843
fix(react-query): ensureSuspenseTimers should ALWAYS set staleTime to 1000 when it is below 1000. (#8398)
* fix(react-query): ensureSuspenseTimers should ALWAYS set staleTime to 1000 when it is below 1000.

* ci: apply automated fixes

* fix(react-query): fix ensureSuspenseTimers logic

* test(react-query): add test code

* test(react-query): delete unnecessary test code

* test(react-query): Refectoring test code to reduce test time

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-03 20:00:04 +01:00
Tanner Linsley
bc8b9e79da release: v5.62.13 v5.62.13 2025-01-03 16:32:01 +00:00
Arnoud
f2fb523cd1
refactor(angular-query): deprecate injectQueryClient (#8497) 2025-01-03 17:28:48 +01:00
Ayush Seth
6184a89354
docs(angular-query): remove outdated comment from example
* Update invalidations-from-mutations.md

* Update invalidations-from-mutations.md

* restore first code snippet

---------

Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
2025-01-03 16:54:42 +01:00
Tanner Linsley
b25a41e209 release: v5.62.12 v5.62.12 2025-01-03 14:50:19 +00:00
Dominik Dorfmeister
19b95c47bb
perf(query-core): Improve mutationCache implementation performance (#8496)
---------

  Co-authored-by: Josh Story <jcs.gnoff@gmail.com>
2025-01-03 15:48:13 +01:00
Matt Tingen
3124193c08
docs: describe query default changes in v5 (#8488)
Fixes #8485
2025-01-03 15:21:03 +01:00
Tanner Linsley
8f72f59463 release: v5.62.11 v5.62.11 2024-12-27 13:15:50 +00:00
Hossein Mohammadi
7ade23350a
fix: handle react-native resolver (#8478) 2024-12-27 14:11:06 +01:00
Tanner Linsley
4f90639610 release: v5.62.10 v5.62.10 2024-12-24 12:05:31 +00:00
Muhammad Ilham Mubarak
287848b528
fix(solid-query): solid query options default error type (#8472) 2024-12-24 13:02:12 +01:00
Muhammad Ilham Mubarak
3bc3147703
docs(contributing): update pnpm version (#8473) 2024-12-24 12:15:32 +01:00
Jonghyeon Ko
ee628e1f9e
chore(react-query): update devDeps (#8427)
* chore(react-query): update devDeps

* chore: reflect review
2024-12-23 18:30:07 +01:00
Tanner Linsley
e41ea5a562 release: v5.62.9 v5.62.9 2024-12-23 16:51:41 +00:00
Nick Lucas
1e73d3a3ad
fix(types): change symbol declarations (#8468) 2024-12-23 17:42:26 +01:00
Pierre Spring
18d81b96d5
docs: Update infiniteQueryOptions.md (#8447)
Fix copy/pasted typo.
2024-12-23 14:42:36 +01:00
Lachlan Collins
5be38721d4
chore: update dependencies (#8464)
* chore: update dependencies

* pnpm dedupe

* ci: apply automated fixes

* fix: downgrade nx to fix graph

* update node

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-22 10:00:54 +11:00
gnerkus
a76ac59e97
docs(useQuery): add more info to description of staleTime field of query options (#8448) 2024-12-18 10:13:29 +01:00
Tanner Linsley
8a0eb6a364 release: v5.62.8 v5.62.8 2024-12-17 17:11:25 +00:00
Nick Lucas
4989399a86
fix(types): fix issues with queryOptions factory method types (#8394)
* Fix issues with queryOptions factory method types

* Apply the same fixes to infiniteQueryOptions

* Revert change to failing test

* Fix test in more userland way

* Unused import

* Add tRPC-style solution

* Unused import

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-12-17 18:06:55 +01:00
Alex Liu
4521a04a25
docs: use correct broadcastChannel default value and type name (#8436) 2024-12-16 16:14:41 +01:00
Lachlan Collins
94e2c7752e
chore(deps): use stable @types/react version (#8437) 2024-12-14 18:24:35 +11:00
Tanner Linsley
1eebfc9d33 release: v5.62.7 v5.62.7 2024-12-10 19:04:21 +00:00
Dominik Dorfmeister
465906af3d
fix(query-core): respect initialData for queryClient.ensureQueryData (#8425)
* fix(query-core): respect initialData for queryClient.ensureQueryData

we used to call `getQueryData` before queryCache.build(), but building is what creates the query and potentially adds initialData. I tried to make that more obvious by reading directly from `query.state.data`

* refactor: simplify condition
2024-12-10 20:01:43 +01:00
Dominik Dorfmeister
27ce0b6559
chore: examples to react19 (#8408)
* chore: examples to react19

* test: seems like pre-warming adds another render, which is fine

* test: more pre-warming renders (this is fine)

* test: use react-render-stream

* chore: move tests to renderStream

* chore: fix act

* test: fix remaining tests

* test: move away from fireEvent.click

because it uses `act` under the hood, which isn't supported / wanted with renderStreams

* test: useInfiniteQuery to renderStream

* chore: stabilize test
2024-12-10 16:06:34 +01:00
Tanner Linsley
aef7ba209a release: v5.62.6 v5.62.6 2024-12-09 14:27:39 +00:00
Arnoud
4dc825661a
fix(angular-query): fix console warning on Angular 19 (#8422) 2024-12-09 15:24:34 +01:00