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

5,040 commits

Author SHA1 Message Date
Gaurav Kumar
55a6155cdf
docs(react-query): Fix broken route on eslint-plugin-query.md (#8113) 2024-10-01 13:10:08 +02:00
Morteza
9227fd3a6a
docs(react-query): fix a typo in guides/ssr.md (#8086) 2024-09-30 10:58:34 +02:00
lami (laurent lahmy)
c12587a19a
Update useQueries.md (#8097)
fix typo
2024-09-30 10:53:21 +02:00
Arnoud
68ca717124
docs(angular-query): add rxjs example (#8108) 2024-09-29 00:37:01 +02:00
Tanner Linsley
8727d978ed release: v5.58.1 v5.58.1 2024-09-27 07:59:05 +00:00
Lachlan Collins
ade6283944
fix(eslint-plugin): fix legacy recommended config (#8104) 2024-09-27 17:56:50 +10:00
thilllon
a9e83a4678
docs: missing code format (#8102) 2024-09-26 19:04:33 +02:00
Tanner Linsley
78cfcfe4d6 release: v5.58.0 v5.58.0 2024-09-25 01:40:39 +00:00
Aryan Deora
f7a82c4fd2
feat(query-devtools): Add bulk edit option for simple objects and arrays (#8095) 2024-09-24 21:35:47 -04:00
Tanner Linsley
be44da3c9a release: v5.57.2 v5.57.2 2024-09-24 18:13:36 +00:00
Manuel Schiller
f1aab708cf
fix(eslint-plugin-query): correctly handle call-expression spread (#8090) 2024-09-24 20:10:38 +02:00
baeharam
9da00d610a
docs(react-query): fix queryClient description of useMutation and use… (#8077)
* docs(react-query): fix queryClient description of useMutation and useQuery

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-09-21 15:52:41 +02:00
Peter Bengtsson
1104948728
docs: Don't use $ prefix in Bash examples (#8067)
On https://tanstack.com/query/latest/docs/framework/react/installation for example, the Bash snippets do *not* have a leading `$` character. So you can click the clipboard and then paste these into your terminal. 
Doesn't work if there's a `$ ` prefix on the bash command.
2024-09-21 11:35:33 +02:00
Tanner Linsley
034eb524ae release: v5.57.1 v5.57.1 2024-09-21 09:16:08 +00:00
Manuel Schiller
1793e06446
fix(eslint-plugin-query): relax property order rule to ignore relative order of getPreviousPageParam and getNextPageParam (#8074) 2024-09-21 11:11:54 +02:00
Tanner Linsley
1d851dda80 release: v5.57.0 v5.57.0 2024-09-20 19:50:42 +00:00
Manuel Schiller
f8d65fb5de
feat(eslint-plugin-query): add rule to ensure property order of infinite query functions (#8072)
* feat(eslint-plugin-query): add rule to ensure property order of infinite query functions

* remove outdated comment

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-20 21:45:40 +02:00
Stephen Brown-Bourne
ca9e3c4fa8
docs: add missing </Show> closing tag to Solid docs (#8068)
* add missing </Show> closing tag

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-09-20 21:26:39 +02:00
Tanner Linsley
763abd1628 release: v5.56.2 v5.56.2 2024-09-12 18:06:08 +00:00
Dominik Dorfmeister
7624785d31
fix(core): make sure infiniteQuery always fetches the first page (#8051)
The pageParam == null bailout is meant for fetching further pages, where users can return null/undefined from getNextPageParam to stop fetching; However, after the latest refactoring, we also did this for the initial fetch. This stops fetching from working at all if the initialPageParam was set to null/undefined, which I didn't think anyone would do, but here we are.
2024-09-12 20:03:59 +02:00
Tanner Linsley
666c8b2e39 release: v5.56.1 v5.56.1 2024-09-12 14:39:05 +00:00
Dominik Dorfmeister
6a17069643
chore: trigger release
RELEASE_ALL
2024-09-12 16:36:07 +02:00
EL AYADI Mohamed
a106d631af
fix(core): retry for infinite queries (issue #8046) (#8049)
* Add reproduction test for infinite loop retries (issue #8046)

* ci: apply automated fixes

* fix: retry for infinite queries

The retryer lives above the fetchFn, and it re-runs the fetchFn whenever a retry happens. Usually, the fetchFn is a thin wrapper around the actual queryFn passed by the user. However, for infinite queries, it fetches all pages in a loop.
The retryer breaks out of this loop if an error occurs on e.g. the second page, and then retries by running the fetchFn - which will re-set the loop

This fix hoists the currentPage counter out of the fetchFn - into the closure created by onFetch. The outer closure is created from running `query.fetch` once, so it won't be re-set between retries.
The fix also re-writes the fetch loop to always take the `currentPage` into account, where it was previously treating the first page differently

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-12 16:18:23 +02:00
Tanner Linsley
d29c37a224 release: v5.56.0 v5.56.0 2024-09-12 09:56:44 +00:00
Dominik Dorfmeister
edec4a64c0
feat(core): ensureInfiniteQueryData (#8048)
* feat(core): ensureInfiniteQueryData

* docs: ensureInfiniteQueryData

* feat(types): make sure we can't pass infiniteQueryOptions to non-infinite query functions like fetchQuery
2024-09-12 11:53:29 +02:00
Ciarán Curley
9608f80056
docs(react-query): recommend against throwing errors in select (#8041)
Explaining why you should not thow errors in the select function

Closes #8039
2024-09-11 15:23:08 +02:00
Tanner Linsley
acb5d37f5c release: v5.55.4 v5.55.4 2024-09-09 06:38:24 +00:00
Jonghyeon Ko
2c1be7bed5
fix(query-core): jsdoc of notifyManager (#8031)
* fix(query-core): jsdoc of notifyManager

* chore: update

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-09 08:32:57 +02:00
Tanner Linsley
4cc4bd2665 release: v5.55.3 v5.55.3 2024-09-09 06:16:58 +00:00
jxom
1bffc78634
fix: replace JSON.stringify with replaceDeepEqual in structural sharing integrity check (#8030)
* feat: throw when `replaceDeepEqual` contains circular references

* ci: apply automated fixes

* chore: up test

* chore: review changes

* ci: apply automated fixes

* chore: add return

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-09 08:12:08 +02:00
Arnoud
d58cf08eb1
chore(angular-query): remove redundant dependencies (#8032)
* chore(angular-query): remove redundant dependencies

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-09-08 20:45:10 +02:00
Cyril Leclercq
9b78527934
docs(react-query): Update React Suspens Link in README.md (#8020) 2024-09-08 18:12:05 +02:00
Tanner Linsley
643abc07c0 release: v5.55.2 v5.55.2 2024-09-08 16:10:27 +00:00
Jonghyeon Ko
f0c5022162
refactor(query-core): move Override type to core (#7916)
* type(react-query, svelte-query): remove unnecessary Override type

* feat(query-core): add Override

Co-authored-by: Lee HyunJae (whale) <71202076+2-NOW@users.noreply.github.com>

* chore: update

* chore: update

---------

Co-authored-by: Lee HyunJae (whale) <71202076+2-NOW@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-08 18:05:10 +02:00
Tanner Linsley
4df469a257 release: v5.55.1 v5.55.1 2024-09-08 13:19:36 +00:00
Jonghyeon Ko
42715e7079
refactor(react-query): split prefetch.ts (#8028)
* fix(react-query): split prefetch.ts

* chore: update

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-08 15:14:37 +02:00
Torleif Berger
5cb0bd4fc0
fix(query-devtools): Added missing type="button" on DevTools-button (#8016)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-08 15:14:19 +02:00
Boby Tiwari
49bfe686da
docs: Update advanced-ssr.md (#8021)
typescript was yelling
2024-09-08 13:52:43 +02:00
Tanner Linsley
353e4ad729 release: v5.55.0 v5.55.0 2024-09-06 05:58:33 +00:00
Jonghyeon Ko
48702e4586
feat(react-query): add optional queryClient parameter to usePrefetchQuery (#8014)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-09-06 07:53:54 +02:00
Tanner Linsley
6799b82460 release: v5.54.2 v5.54.2 2024-09-05 19:51:22 +00:00
Junhee Park
9cb5922f56
perf(vue-query): add shallow flag to improve perf on large datasets (#7733)
* fix(vue-query): use shallowReactive and shallowReadonly to prevent perforamcne slowdown for large datasets

* Use shallowReadonly and shallowRef in useMutationState too

* fix(vue-query): add shallow option, strip readonly in prod mode

---------

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2024-09-05 21:47:32 +02:00
renovate[bot]
0f86b4d2fd
chore(deps): update dependency sherif to v1 (#7999)
* chore(deps): update dependency sherif to v1

* Fix sorting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-09-04 15:13:58 +10:00
renovate[bot]
46af0424d5
chore(deps): update dependency svelte-check to v4 (#8013)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 14:44:32 +10:00
Tanner Linsley
c14a17d03e release: v5.54.1 v5.54.1 2024-09-03 20:50:46 +00:00
Simone Cervini
a85382f641
fix(query-core): accept generics on setQueryDefaults and setMutationDefaults (#7903)
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2024-09-03 22:46:19 +02:00
Tanner Linsley
c738352c87 release: v5.54.0 v5.54.0 2024-09-02 23:18:21 +00:00
Toofff
f8ad97355c
feat(react-query-dev-tools): Add ReactQueryDevToolsPanel support (#7788)
* feat(react-query-dev-tools): Add ReactQueryDevToolsPanel support

Devtools Embedded Support is finally here! 
Embedded Mode will embed the devtools as a regular component in your application. You can style it however you'd like after that!

---------

Co-authored-by: Aryan Deora <adeora@iu.edu>
2024-09-02 18:39:48 -04:00
Tanner Linsley
8af72729f0 release: v5.53.3 v5.53.3 2024-09-02 12:32:52 +00:00
Bohdan Yefimenko
fb9d4f6138
fix(query-core): remove error thrown inside replaceData (#8004) 2024-09-02 14:27:36 +02:00