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

5,191 commits

Author SHA1 Message Date
Tanner Linsley
77b5f3a634 release: v5.60.7 v5.60.7 2024-11-19 18:40:02 +00:00
Arnoud
4aff8469aa
fix(angular-query): remove queryClient parameter from callback functions (#8307) 2024-11-19 19:32:49 +01:00
Tanner Linsley
fa77f323cb release: v5.60.6 v5.60.6 2024-11-19 10:17:37 +00:00
Juhyeok Kang
7d36089440
refactor(*): change noop function return type from undefined to void (#8299)
* refactor(*): use noop

* refactor: separate noop and returnUndefined functions with type refinement

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com>

* refactor: optimize bundle size with type re-assertion

* fix: Prevent type error by overloading noop function

* fix: remove jsdoc

* fix

* revert

* revert at react-query and angular-query-experimental

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-11-19 10:25:51 +01:00
Ammar
fadfbde045
Update infinite-queries.md (#8302) 2024-11-18 18:22:25 +01:00
Tanner Linsley
3fc2fce77e release: v5.60.5 v5.60.5 2024-11-15 18:06:46 +00:00
Dominik Dorfmeister
4a2e838fc0
fix(useQueries): make sure we don't lose property tracking (#8295)
if we call `combine` with `#this.result`, we don't have a tracked version of it, as tracking happens in useQueries (to avoid tracking internal access)
2024-11-15 19:04:39 +01:00
Arnoud
0df28830a7
docs(angular-query): type narrowing (#8297) 2024-11-15 18:48:03 +01:00
Arnoud
118b1522ef
docs(angular-query): add TypeScript documentation (#8296) 2024-11-15 18:35:16 +01:00
Tanner Linsley
878649500c release: v5.60.4 v5.60.4 2024-11-15 15:43:20 +00:00
Jonghyeon Ko
6c2a05507d
refactor(*): unify & use noop (#8294)
* refactor(*): unify & use noop

* chore: update

* fix(query-core): reflect tkdodo's review

* chore: resolve type error
2024-11-15 16:38:50 +01:00
Tanner Linsley
7838edc754 release: v5.60.3 v5.60.3 2024-11-14 21:55:29 +00:00
Arnoud
923736c62e
fix(angular-query): support inject(QueryClient) (#8292)
* fix(angular-query): support inject(QueryClient)

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-14 22:48:46 +01:00
Tanner Linsley
7615661593 release: v5.60.2 v5.60.2 2024-11-14 12:48:16 +00:00
Arnoud
94891fd137
refactor(angular-query): build with tsup and remove devtools component (#8284)
* chore(angular-query): build with tsup

* ci: apply automated fixes

* remove unused tslib dependency

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-14 13:40:48 +01:00
Jonghyeon Ko
c9fcd2fd74
test(react-query): useInfinitePrefetchQuery -> usePrefetchInfiniteQuery (#8265) 2024-11-13 09:39:29 +01:00
Sol Lee
322974c651
chore(eslint-plugin-query): ignore combinate spell check lint warning (#8266)
* chore: ignore `combinate` spell check lint warning

* fix typo

* chore: apply to root eslint config instead of just `eslint-plugin-query`
2024-11-13 08:53:40 +01:00
Jonghyeon Ko
8d1f5429e1
test(react-query): add test case for useSuspenseQueries accept skipToken as queryFn (#8271) 2024-11-13 08:07:35 +01:00
Jonghyeon Ko
ebd4c2b4ed
test(react-query): add test case for useSuspenseInfiniteQuery accept skipToken as queryFn (#8270) 2024-11-13 08:07:00 +01:00
Jonghyeon Ko
e802711e7b
test(react-query): add test case for useSuspenseQuery accept skipToken as queryFn (#8269) 2024-11-13 08:06:15 +01:00
Jonghyeon Ko
c2b435dcd9
test(react-query): add test case for infiniteQueryOptions (#8268) 2024-11-13 08:05:42 +01:00
Jonghyeon Ko
6c9e3f318c
test(react-query): add test case for queryOptions (#8267)
* test(react-query): add test case for queryOptions

* chore: update
2024-11-13 08:05:17 +01:00
Ethan Glover
aa6d3f84df
docs: Add @tanstack/query/infinite-query-property-order link (#8285) 2024-11-13 08:03:51 +01:00
Arnoud
f56fc84159
docs(angular-query): improve examples (#8273) 2024-11-10 22:08:44 +01:00
Jonghyeon Ko
74c65cc2db
test(react-query): refactor test file structure 1 file by 1 api (#8262)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-11-08 18:11:01 +01:00
Ariel-Moroshko
7085bd11c0
docs: correct file extensions to .tsx and add type annotations (#8259)
* Fix typo: 'hydrate' to 'dehydrate' in documentation

* fix: correct file extensions to .tsx and add type annotations

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-08 14:07:07 +01:00
Tanner Linsley
8ae5aed0ba release: v5.60.1 v5.60.1 2024-11-08 10:06:49 +00:00
Gyumong
2f6c028ff8
fix(eslint-plugin-query): add Suspense query hooks to no-rest-destructuring rule (#8260)
* fix(eslint-plugin-query): add missing hooks to no-rest-destructuring rule

* test(no-rest-destructuring): add test cases for Suspense query hooks
2024-11-08 11:03:58 +01:00
Tanner Linsley
3ea6c0c875 release: v5.60.0 v5.60.0 2024-11-07 15:32:23 +00:00
Arnoud
2459701116
feat(angular-query): add withDevtools and injectDevtoolsPanel 2024-11-07 16:18:52 +01:00
Tanner Linsley
5ce9959c02 release: v5.59.20 v5.59.20 2024-11-06 14:13:37 +00:00
Dominik Dorfmeister
848df6236c fix: don't ship test files 2024-11-06 15:04:17 +01:00
Jonghyeon Ko
06e315c9ff
test(react-query): type test usePrefetchInfiniteQuery correctly (#8223)
* test(react-query): type test usePrefetchInfiniteQuery correctly

* chore: update
2024-11-04 09:47:33 +01:00
Artur Abdullin
aa92accdbd
docs(devtools): fix typo (#8248) 2024-11-04 07:38:47 +01:00
Tanner Linsley
b8bef6a5c8 release: v5.59.19 v5.59.19 2024-11-03 14:18:08 +00:00
Kae
9c93dc0642
fix(query-devtools): handle null properties for __previousQueryOptions (#8240)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-11-03 15:14:15 +01:00
CarolineClr
92defc6e42
docs(community-projects): Add Atomic CRM to the list of community projects (#8229)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-11-03 11:55:23 +01:00
Sol Lee
0f84062225
test(react-query): remove async from queryFn (#8232) 2024-11-03 11:46:49 +01:00
Tanner Linsley
1a8354f7f4 release: v5.59.18 v5.59.18 2024-11-03 09:27:34 +00:00
Dominik Dorfmeister
74f0d6aea9
fix(useQuery): don't retryOnMount when prefetchInRender is used (#8247)
otherwise, queries will not stay in error state, but immediately go into pending + fetching again; this is also shown by the fact that an additional test now failed, because it didn't reset the error boundary correctly
2024-11-03 10:24:00 +01:00
Tanner Linsley
fdc5c8eb1e release: v5.59.17 v5.59.17 2024-11-02 17:45:57 +00:00
Dominik Dorfmeister
c643635850
fix(useQueries): warn on duplicate keys (#8246) 2024-11-02 18:42:03 +01:00
Sol Lee
39a35d88cc
chore(react-query-persist-client): remove redundant setIsRestoring(true) to fix lint warning (#8213) 2024-11-02 10:56:40 +01:00
Arnoud
c61ff1e2f8
docs(angular-query): add query options from a service example (#8220) 2024-10-25 18:36:45 +02:00
Lachlan Collins
1865f0db1b
test(react-query): better query-persist-client-core import (#8212) 2024-10-24 14:21:58 +11:00
Uğurcan Emre Ataş
caf6556fce
chore(docs): update useQueryFocusAware docs (#8205)
* chore(docs): update react native useQueryFocusAware docs

* 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>
2024-10-23 15:29:30 +02:00
Tanner Linsley
820bb81ba8 release: v5.59.16 v5.59.16 2024-10-23 12:53:17 +00:00
Dominik Dorfmeister
df49fbdd63
fix(react-query): make sure promises are always finalized (#8211)
otherwise, there can be cases with multiple observers where we have listeners already, but still need to finalize
2024-10-23 14:51:27 +02:00
Haeun Nam
4fceb260d5
chore(query-core): define queryCache notify method's return type (#8191)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-10-23 12:52:04 +02:00
Jonghyeon Ko
d3e2a8ad7a
chore(react-query): remove unnecessary test file (__test__/suspense.tsx, suspense.test-d.tsx) (#8208)
* refactor(react-query): remove unnecessary test file

* chore: update
2024-10-23 11:44:17 +02:00