0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,975 commits

Author SHA1 Message Date
Flo
3d1e0a0d84
chore: fix typo in code comment (#6411) 2023-11-23 17:58:25 +01:00
Ishrath Inaam
87174c940b
docs: Update dependent-queries.md (#6418)
Syntax typo
2023-11-23 17:55:54 +01:00
Philip Englund
94dc3f64c4
docs(useMutationState): add reference (#6423) 2023-11-23 17:52:20 +01:00
Tanner Linsley
fda172be4f release: v5.8.5 v5.8.5 2023-11-22 21:47:19 +00:00
eth3lbert
73a65ac393
fix(svelte-query-devtools): make styleNonce prop optional (#6417) 2023-11-22 16:45:58 -05:00
이효범
a46c8a7f6d
docs: Update caching.md (#6406) 2023-11-21 13:40:10 +01:00
Björn Böing
ab69d83add
docs: Fix example for focusManager.setEventListener (#6385)
Fixes #6382
2023-11-16 08:22:16 +01:00
Tanner Linsley
dc8f6395f8 release: v5.8.4 v5.8.4 2023-11-15 11:30:28 +00:00
EL AYADI Mohamed
e7f6d3ae8b
fix(react-query): useSuspenseQuery returns undefined as data when network is offline (#6350)
* #6344: reproduce query not suspending when offline

* shouldSuspend to return true when isPaused is true and other conditions are met

* change test to load data first on online and then go offline, then come back online

* adapt test to issue with changing query and rely on isPending rather than isPaused

* Adapt shouldSuspend condition & remove isRestoring from it
2023-11-15 12:27:30 +01:00
Lachlan Collins
83d71c3074
chore: Update to prettier v3.1.0 (#6378) 2023-11-15 14:15:47 +11:00
Lachlan Collins
b8bfe43562
chore: Add Sherif to CI to lint monorepo config (#6376) 2023-11-15 13:49:37 +11:00
Richard Ejem
c6d5f53b6a
docs: Fix example hook cleanup if window is undefined (#6372)
If window is undefined, we'd skip initialization of the event,
but window.removeEventListener would still be attempted
to be called upon cleanup and fail with error due to undefined
window.
2023-11-14 15:44:39 +01:00
Tanner Linsley
2fb759fda8 release: v5.8.3 v5.8.3 2023-11-13 08:50:40 +00:00
Dominik Dorfmeister
02c95f98eb
chore: trigger release
RELEASE_ALL
2023-11-13 09:42:31 +01:00
Florian De la comble
f29f0e7097
docs(community): adding http-wizard (#6360) 2023-11-12 11:38:37 +01:00
Aryan Deora
73e339624b
fix(query-core): Show correct placeholderData when request in cache (#6357) v5.8.2 5.8.2
* fix(query-core): Show correct placeholderData when reuest in cache

* Fix formatting

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-11 21:57:36 +01:00
Bene
7c87c3d7b7
fix(types): pass TError, TQueryData and TQueryKey to PlaceholderDataFunction (#6349)
* fix: pass TError, TQueryData and TQueryKey to PlaceholderDataFunction

* test: add types test for placeholderData function

* style: format

---------

Co-authored-by: Benedikt Viebahn <benedikt.viebahn@live-eo.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Benedikt Viebahn <bviebahn@pm.me>
2023-11-11 21:47:07 +01:00
Jonghyeon Ko
8b7cc4313f
chore(query-core): rename sleep param as ms (#6358)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-11 21:42:41 +01:00
Jonghyeon Ko
6df2ae1d11
chore(query-core): resolve prettier error (#6359) 2023-11-11 21:38:42 +01:00
Aldrin
2d42f2bbc4
docs: add in editor-docs for gcTime key (#6339)
* chore: add in editor-docs for gcTime key

* chore: add in editor-docs for gcTime key

* Update packages/query-core/src/types.ts

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-11 16:19:53 +01:00
Lachlan Collins
3f82dc8588
chore: Fix monorepo issues reported by Sherif (#6354) 2023-11-11 12:27:07 +11:00
krisko4
4d2d4856be
docs(examples-react-suspense): add font-awesone dependency to display Spinner correctly (#6345)
Spinner is not visible in the Suspense example due to missing font-awesome dependency.
2023-11-10 10:39:34 +01:00
Dominik Dorfmeister
0eccfbfeca docs: suspense api docs 2023-11-10 10:39:12 +01:00
Tanner Linsley
5b9be1e299 release: v5.8.1 v5.8.1 2023-11-08 08:05:09 +00:00
Dominik Dorfmeister
4774f03046
fix(core): make sure queries that re-subscribe will have the correct result (#6334) 2023-11-08 08:59:24 +01:00
Daniel Roe
4266f0b77c
docs(vue-query): import nuxt composables from #imports (#6329)
* fix: import nuxt composables from #imports

* chore: also import `defineNuxtPlugin`
2023-11-08 00:41:47 +01:00
Mihai Crisan
e3a00034bd
docs(QueryClient.md): fix typo immuatable → immutable (#6330)
I made a [PR for this before] (https://github.com/TanStack/query/pull/6328) but turns out that change was for v4 only. This is for latest
2023-11-07 22:57:00 +01:00
wildOrlik
55d70c74a6
test(asyncThrottle): migrated to useFakeTimers (#6324) 2023-11-07 17:16:33 +01:00
Emmanuel DEMEY
b384c4e26f
docs: add missing useQueryClient to the documentation (#6322) 2023-11-07 10:12:37 +01:00
Tanner Linsley
b5c0d76ea0 release: v5.8.0 v5.8.0 2023-11-07 08:45:42 +00:00
Damian Osipiuk
634b6dac32
feat(vue-query): component based vue devtools - Vue3 only (#6255) 2023-11-07 09:41:53 +01:00
Tanner Linsley
9b19eaa9c9 release: v5.7.4 v5.7.4 2023-11-07 04:30:11 +00:00
Aryan Deora
60bd38ca6c
fix(query-devtools): Add styleNonce prop to devtools components (#6320) 2023-11-06 23:27:00 -05:00
Tanner Linsley
4445d72b47 release: v5.7.3 v5.7.3 2023-11-06 20:59:06 +00:00
Damian Osipiuk
7699dd3f18
fix(vue-query): queryClient overloads compat with queryOptions (#6319) 2023-11-06 21:57:15 +01:00
Marty Powell
e31087cf9f
docs: fix link to community Query Key Factory Package (#6316) 2023-11-06 14:23:37 +01:00
Bennett Dams
43e2656752
docs(paginated-queries): Add import statements (#6315) 2023-11-06 14:22:43 +01:00
Tanner Linsley
603a346d4f release: v5.7.2 v5.7.2 2023-11-05 15:34:51 +00:00
Dominik Dorfmeister
6ee06719ae
fix(types): remove suspense from defaultOptions (#6301)
we don't want to be able to set `suspense: true` globally like this anymore: React has `useSuspenseQuery` and other frameworks don't need it either
2023-11-05 16:19:29 +01:00
callmedukey
ecdd927c84
docs: Update devtools.md (#5950)
installing it as a regular dependency doesn't work during development with next 13 app dir. Import trace errors thrown all around.
2023-11-05 15:55:01 +01:00
Tanner Linsley
f484d7e708 release: v5.7.1 v5.7.1 2023-11-05 11:04:58 +00:00
Maciej Baruch
e4138ecda1
fix(react-query): non continuous suspense with useSuspenseQueries (#6298) (#6303)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-05 12:01:34 +01:00
Lachlan Collins
fe49dd3523
docs: Fix svelte playground example reactivity (#6311)
* docs: Fix svelte playground example reactivity

* Rename next-js-app to react-next

* Update pnpm lock

* Fix prettier
2023-11-05 16:35:32 +11:00
cje
d90dc8f754
docs: changed import path in react prefetching example (#6307) 2023-11-04 17:11:58 +01:00
Tanner Linsley
b98f5469b9 release: v5.7.0 v5.7.0 2023-11-04 15:40:21 +00:00
GLabat
8a86182c7e
feat(react-query): better error in development mode to identify bad useQuery calls (#6288)
* refactor(query-core): export isPlainObject

* refactor(useBaseQuery): dev error in case of bad argument

Mainly for project without TS. This helps tracking bad signature when migrating from v4 to v5.

* refactor(useQueryClient): dev error in case of bad queryClient

Mainly for project without TS. Make sure the queryClient passed as parameter is really a query. With the change of signature introduced by v5, queryOptions from useQuery could end up as queryClient due to how useBaseQuery works.

* revert: "refactor(useQueryClient): dev error in case of bad queryClient"

This reverts commit 9bedf21782.

* refactor(useQuery): manual test to avoid export from query-core.

* refactor(useQuery test): TS ignore invalid call

---------

Co-authored-by: Guillaume Labat <guillaume.labat+git@imagino.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-04 16:35:05 +01:00
Tanner Linsley
196cced55f release: v5.6.1 v5.6.1 2023-11-04 11:35:45 +00:00
softgrip
291f4ec77f
fix(svelte-query): Add try/catch to getIsRestoringContext (#6193)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2023-11-04 22:32:49 +11:00
Tanner Linsley
4a298156af release: v5.6.0 v5.6.0 2023-11-04 08:32:03 +00:00
Li-Lun Lin
d77d9d852a
feat(eslint-plugin): add no-rest-destructuring rule (#6265) (#6302)
* feat(eslint-plugin): add no-rest-destructuring rule (#6265)

* chore: format test case code

* test: add null array element testcase

* test: add non-tanstack-query hooks testcase

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-04 09:29:48 +01:00