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
Tanner Linsley
0a2b1ba185 release: v5.28.14 v5.28.14 2024-04-02 15:25:19 +00:00
Andrew Kogut
f585bfead0
fix(react-query): useSuspenseQueries type not compatible with queryOption (#7194)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-04-02 17:20:48 +02:00
Gioele Vuaran
0123c8094d
docs: gcTime max value (#7190) 2024-04-02 17:15:08 +02:00
Tanner Linsley
9e70983cd8 release: v5.28.13 v5.28.13 2024-04-02 15:05:36 +00:00
Dominik Dorfmeister
53cdfcea9e
fix(core): do not invoke combine in constructor (#7215)
because the component might suspend, in which case we have nothing to combine
2024-04-02 17:02:16 +02:00
Tanner Linsley
a4d843aad1 release: v5.28.12 v5.28.12 2024-04-02 12:26:24 +00:00
Dominik Dorfmeister
e5bfbbe61a
fix(types): add pageParam and direction as optional to "normal" queryFn (#7212)
* fix(types): add pageParam and direction as optional to "normal" queryFn

because that's what we get when using a defaultQueryFn

* chore: remove tests that are no longer true

* chore: cleanup

* wth?
2024-04-02 14:21:56 +02:00
Tanner Linsley
3cc0c152ac release: v5.28.11 v5.28.11 2024-04-02 11:19:06 +00:00
Eliya Cohen
1e3f7915fb
fix(eslint-plugin-query): test for FunctionExpression syntax (#7213) 2024-04-02 13:17:18 +02:00
hanna
a9648ba275
docs(examples): fix spelling (#7207) 2024-04-02 10:00:56 +02:00
Jean-Baptiste Kaiser
798124da1c
fix(codemod): add support for useMutation (#7187)
* fix(codemod): add support for useMutation

* fix(codemod): add missing empty line to test fixture file

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-04-02 08:59:25 +02:00
Daniel Roe
eaf4af6938
docs: use nuxt import.meta.* properties (#7185)
* fix: opt in to `import.meta.*` properties

* Update ssr.md
2024-03-29 00:02:06 +01:00
Tanner Linsley
21bde49d38 release: v5.28.10 v5.28.10 2024-03-27 15:50:03 +00:00
Aryan Deora
ffad09d5b5
fix(query-devtools): Fix Trigger Loading Button (#7188) 2024-03-27 11:44:01 -04:00
Tanner Linsley
2330584226 release: v5.28.9 v5.28.9 2024-03-27 03:04:04 +00:00
Aryan Deora
de2f862ba5
style(query-core): Fix prettier formatting error (#7182) 2024-03-26 22:54:31 -04:00
Aryan Deora
c98a02a858
fix(solid-query): Hydrate correct queryKey on hydration (#7174) 2024-03-26 11:09:10 -04:00
Alex Liu
262794f09a
refactor(core): replace this.getQueryCache() with this.#queryCache for consistency (#7175) 2024-03-26 06:18:10 +01:00
Tanner Linsley
2389dd1e85 release: v5.28.8 v5.28.8 2024-03-25 10:33:58 +00:00
김관식
a559c48537
fix(*): infer data type correctly when conditional skipToken is passed to useQueries (#7150)
* fix(react-query): infer data type correctly when conditional skipToken is passed to useQueries

* refactor: add OmitKeyof to useQueries.test-d.tsx

* fix(*): Ensure correct data type with conditional skipToken

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-25 11:27:37 +01:00
Jonghyeon Ko
93ce4aed46
ci(.prettierignore): ignore **/tsconfig.vitest-temp.json (#7163) 2024-03-25 10:32:14 +01:00
Jonghyeon Ko
b48d71eb20
docs(*): update CONTRIBUTING.md (#7165)
* docs(*): update CONTRIBUTING.md

* docs(*): remove types as commit type
2024-03-25 10:31:48 +01:00
Mohamed Yamani
c4729dfee4
docs: corrected contraction to possession (#7170) 2024-03-24 14:04:42 +01:00
Jonghyeon Ko
39b2f81bc7
types: add OmitKeyof to Omit object by object's keys strictly (#7139)
* feat(*): add OmitKeyOf to validate Omitting keys

* Update packages/vue-query/src/__tests__/useQueries.types.test.ts

* Update packages/vue-query/src/__tests__/useQueries.types.test.ts

* chore(*): update OmitKeyof's type

Co-authored-by: 2-NOW <kj109888@gmail.com>

* test(query-core): add test case for OmitKeyof

* chore: update

---------

Co-authored-by: 2-NOW <kj109888@gmail.com>
2024-03-22 16:02:19 +01:00
Dominik Dorfmeister
2ddf803636 chore: fix prettier 2024-03-21 16:45:16 +01:00
Todor Andonov
e0ead7fffb
docs: add a note for mutations in the dev tools (#7136) 2024-03-21 16:40:22 +01:00
Minkyu Kim
2b337a75f6
docs: Update docs/framework/guides (#7140)
* docs: Update missing declaration keyword

* docs: Update missing declaration keyword

* docs: partial restoration
2024-03-21 16:18:12 +01:00
Tanner Linsley
6399c25716 release: v5.28.7 v5.28.7 2024-03-21 00:50:50 +00:00
Damian Osipiuk
3d05915489
fix(vue-query): disable default vue devtools integration due to breaking changes (with option to enable it) (#7145)
* fix: disable default vue devtools integration due to breaking changes (with option to enable it)

* types: fix type

* types: try fix types
2024-03-21 01:48:50 +01:00
Damian Osipiuk
31ea09fb81
docs(vue-query): add vue 2.7 example (#7146) 2024-03-21 01:08:11 +01:00
Tanner Linsley
4914287aa0 release: v5.28.6 v5.28.6 2024-03-20 23:29:16 +00:00
Damian Osipiuk
392d352926
fix(vue-query): respect throwOnError in suspense (#7143)
* fix(vue-query): respect `throwOnError` in `suspense`

* docs: fix formatting
2024-03-21 00:25:56 +01:00
Jonghyeon Ko
1b698ca4b0
ci(*): add attw --pack for all packages (#7119)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-18 11:08:59 +01:00
jjangga0214
8d5ce72245
docs(guides/disabling-queries): typo (#7132)
* fix(guides/disabling-queries): typo

* fix(guides/disabling-queries): another typo
2024-03-18 09:27:19 +01:00
Jonghyeon Ko
cecd720bcb
test(query-core): rename test directory for consistency (#7122)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-16 23:52:49 +01:00
Tanner Linsley
08c3066a09 release: v5.28.5 v5.28.5 2024-03-16 21:06:14 +00:00
Aryan Deora
f2e7af8706
fix(solid-query): Fix query refetch after SSR (#7127) 2024-03-16 17:01:06 -04:00
Jonghyeon Ko
a6da18716a
ci(*): add husky + lint-staged + prettier to reduce chance to meet test:format error (#7123)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-16 20:33:49 +01:00
Jonghyeon Ko
4d7c8c1b68
ci(.github/workflow): update codecov version (#7117) 2024-03-16 20:27:28 +01:00
Tanner Linsley
4f168d77ec release: v5.28.4 v5.28.4 2024-03-15 11:56:29 +00:00
Dominik Dorfmeister
4d5cc6679c
fix(core): optimistic results reflect correct state (#7114)
* fix(core): optimistic results reflect correct state

when computing the optimistic result, we need to set / reset all properties that the `fetch` action in the query reducer will also set. This fix extracts the logic into a function and calls it in both places

* chore: comment
2024-03-15 12:53:22 +01:00
Tanner Linsley
10ae75e67d release: v5.28.3 v5.28.3 2024-03-15 03:42:32 +00:00
Aryan Deora
d7c36dc3d4
fix(query-devtools): Fix PiP mode styles with shadow dom (#7112) 2024-03-14 23:34:36 -04:00
Tanner Linsley
d07fc32e6e release: v5.28.2 v5.28.2 2024-03-14 16:54:54 +00:00
Gaute Meek Olsen
75131d6447
fix(core): do not update completed mutations (#7104)
* fix(core): do not update completed mutations

* test(core): verify mutations meta in cache with multiple mutations

* style(core): prettier formatting

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-14 17:47:59 +01:00
Tanner Linsley
ee2112cc2f release: v5.28.1 v5.28.1 2024-03-14 14:20:21 +00:00
Andre de Waard
cdd4093478
fix(vue-query): add correct type to ensureQueryData (#7107) 2024-03-14 15:15:02 +01:00
Tanner Linsley
fe7dca6955 release: v5.28.0 v5.28.0 2024-03-13 12:22:53 +00:00
Andre de Waard
e34bf4d03a
feat(ensureQueryData): add 'revalidateIfStale' option (#6996)
* feat(fetchQuery): add 'prefetchWhenStale' option

* Revert "feat(fetchQuery): add 'prefetchWhenStale' option"

This reverts commit 76cd6a7719.

* fetch(ensureQueryData): Add revalidateIfStale option

* fetch(ensureQueryData): Add revalidateIfStale option

* fetch(ensureQueryData): Add revalidateIfStale option

* test(ensureQueryClient) implemented test for new option 'revalidateIfStale'

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

* feat(fetchQuery): formatted file

* Update docs/reference/QueryClient.md

* chore: prettier

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-13 13:15:28 +01:00
Tanner Linsley
be20804388 release: v5.27.8 v5.27.8 2024-03-12 17:31:18 +00:00