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

5,624 commits

Author SHA1 Message Date
차승하
065b5f4317
chore: disable the ESLint rule that removes Context.Provider (#9162)
* style: disable the ESLint rule that removes Context.Provider

* fix: correct grammartic mistake
2025-05-18 16:43:59 +02:00
shagag
c1142b923b
docs(react-query): Small rephrase of adavnced-ssr.md (#9152)
“Let’s next look” – This is slightly awkward
2025-05-15 21:03:06 +02:00
Arnoud
8b4e0bd0b3
chore(angular-query): update to angular 20 RC (#9153)
* chore(angular-query): update to angular 20

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-15 14:45:43 +02:00
MINSEONG KIM
2be8cca104
test(query-core): add test case for queryObserver (#9146)
* test(query-core): add test case for queryObserver

* fix test
2025-05-14 15:39:34 +02:00
Tanner Linsley
5c9bd115e0 release: v5.76.1 v5.76.1 2025-05-13 22:04:34 +00:00
Damian Osipiuk
65ef198ad8
fix(experimental_createQueryPersister): return more utilities, rename persister (#8062)
* fix(experimental_createQueryPersister): return more utilities, rename persister

* chore: some docs

* test: add tests for utilities

* ci: apply automated fixes

* fix: add missing await

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-13 23:39:40 +02:00
Tanner Linsley
08cb4b6577 release: v5.76.0 v5.76.0 2025-05-12 09:07:27 +00:00
MINSEONG KIM
c89c6a0bab
test(query-core): add test case for InfiniteQueryObserver (#9141) 2025-05-12 11:02:19 +02:00
Austin Johnson
696fd443c7
feat(devtools): 🏝️ TanStack Query DevTools for Expo/React Native! 🚀 (#8846)
* test

* feat(devtools): add action event types and notify functionality for query actions

* cleanup commeny

* fix(devtools): update notifyDevtools to use queryClient for all action notifications

* remove dup call

* Fix online manager bug not syncing correctly

* Update docs

* Fix default case error due to additional events from dev tools.

* Add events

* ci: apply automated fixes

* Remove no longer needed code

* ci: apply automated fixes

* revert previous change

* undo minor text change

* ci: apply automated fixes

* Update packages/query-devtools/src/Devtools.tsx

* Apply suggestions from code review

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-12 11:00:57 +02:00
Lachlan Collins
6a52926562
test(react-query): initiate queryClient in beforeEach (#9142) 2025-05-12 14:56:10 +10:00
Tanner Linsley
81aa02bc18 release: v5.75.8 v5.75.8 2025-05-09 14:50:03 +00:00
Arnoud
4b0f79fb4b
fix(angular-query): allow providing on element injectors (#9134) 2025-05-09 16:37:44 +02:00
Tanner Linsley
b1e0c9fd28 release: v5.75.7 v5.75.7 2025-05-09 13:40:52 +00:00
novice0840
07cbfe1b36
refactor(react-query): exchange react-query noop to query-core noop (#9122)
* refactor: exchange react-query noop to query-core noop

* ci: apply automated fixes

* fix: resolve import error

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-09 15:34:43 +02:00
Dovakeidy
cb40661209
docs(comparison): mark RTK Query as supporting infinite queries (#9120)
RTK Query now supports infinite queries as introduced in Redux Toolkit v2.6.0. This feature allows efficient pagination handling through useInfiniteQuery, with built-in support for fetching next/previous pages and managing paginated cache state.

Docs: https://redux-toolkit.js.org/rtk-query/usage/infinite-queries
Release: https://github.com/reduxjs/redux-toolkit/releases/tag/v2.6.0
2025-05-09 12:20:50 +02:00
Tanner Linsley
3da0c7ecdd release: v5.75.6 v5.75.6 2025-05-09 09:31:14 +00:00
novice0840
295a5d586f
refactor: integration should throw error (#9130)
* feat(query-core): made "shouldThrowError" function

* refactor(react-query): apply "shouldThrowError" function in react-query package

* refactor(angular-query-experimental): apply "shouldThrowError" function

* refactor(solid-query): apply "shouldThrowError" function

* refactor(vue-query): apply "shouldThrowError" function

* test: add shouldThrowError function test
2025-05-09 11:26:54 +02:00
novice0840
e0ea8f22f2
docs: remove unnecessary text (#9131) 2025-05-09 11:24:37 +02:00
Arnoud
57251a4e24
feature(angular-query): support providing QueryClient via an InjectionToken (#9128)
This is useful for example in thin app shell applications where feature teams provide their dependencies on lazy loaded route providers while still allowing to easily share a QueryClient.

This way the main bundle for the app shell does not include TanStack Query.
2025-05-08 21:52:29 +02:00
autofix-ci[bot]
8f092f9e4a
ci: apply automated fixes 2025-05-08 16:23:54 +00:00
Tanner Linsley
6ee1e666fe
Update README.md 2025-05-08 10:22:43 -06:00
autofix-ci[bot]
37d8eb6ff9
ci: apply automated fixes 2025-05-08 16:20:30 +00:00
Tanner Linsley
32414aab2f
Update README.md 2025-05-08 10:19:18 -06:00
xxziiko
3d64dc60f1
docs(react-query): ensure suspense example fallback renders correctly (#9119)
The previous suspense example incorrectly rendered null instead of the
fallback UI. This change moves the null check outside the Suspense
component to ensure the fallback is displayed as expected.

Fixes #9019
2025-05-08 13:17:25 +02:00
Jonghyeon Ko
66ea5f2fcc
chore: add typescript-eslint/require-await rule (#9116)
Co-authored-by: MINSEONG KIM <65233075+minseong0324@users.noreply.github.com>
2025-05-08 04:48:20 +09:00
김석진(poki)
2a62ea1ff1
test(react-query): improve branch coverage for useSuspenseQuery skipToken error handling (#9112)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-05-08 02:43:56 +09:00
김석진(poki)
b1cdbc3fd9
test(react-query): improve branch coverage for useSuspenseQueries skipToken error handling (#9113)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-05-08 02:38:24 +09:00
김석진(poki)
2496ba51bb
test(react-query): improve branch coverage for useSuspenseInfiniteQuery skipToken error handling (#9114)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-05-08 02:34:08 +09:00
Jonghyeon Ko
d0552afb0b
test(query-test-utils): init (internal package) (#9095)
* test(query-test-utils): init

* refactor(tests): replace createQueryClient with new QueryClient instantiation across test files

* refactor(tests): remove unused imports in utils test file

* refactor(tests): replace fetcher functions with sleep-based implementations in query tests

* refactor(tests): replace simpleFetcher with sleep-based implementations in query tests

* fix(query-core): update test:build script to remove pnpm prefix

* refactor(tests): extract query function into a variable for clarity in useQuery tests

* chore(tsconfig): remove temporary Vitest TypeScript configuration file

* chore: add @tanstack/query-test-utils as a devDependency in multiple packages

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-05-07 15:34:10 +02:00
Tanner Linsley
2cd0cebb1e release: v5.75.5 v5.75.5 2025-05-07 07:29:51 +00:00
Seyeong Jeon
373546be9a
fix(react-query): fix to show type error on wrong type annotation in useQuery (#8683)
* fix(react-query): fix no error on wrong type annotation

* test(react-query): remove an unused var

* feat: use NoInfer from query-core

* ci: apply automated fixes

* fix: fix eslint error (disable)

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-07 09:25:08 +02:00
MINSEONG KIM
732089e719
test(query-core): add test case for infiniteQueryBehavior (#9101)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-05-07 04:51:01 +09:00
Jonghyeon Ko
6f8d57b7bf
ci(*): update vitest/expect-expect rule as error (#9111) 2025-05-07 03:21:51 +09:00
Jonghyeon Ko
62faf10f5c
ci(react-query): update vitest/expect-expect rule as error (#9110) 2025-05-07 01:52:07 +09:00
Jonghyeon Ko
06ac87ecdc
ci(angular-query, query-core): update vitest/expect-expect rule as error (#9109) 2025-05-06 21:15:16 +09:00
Jonghyeon Ko
0943575ae7
ci(*): init ESLint configurations to include 'vitest/expect-expect' rule as error across multiple packages gradually (#9104)
* chore(*): init ESLint configurations to include 'vitest/expect-expect' rule as error across multiple packages gradually

* chore(query-core): remove unused import from ESLint configuration

* chore(angular-query-experimental): update eslint rule

* chore: integrate vitest ESLint plugin and apply recommended rules across multiple packages

* chore(react-query-devtools): add vitest ESLint plugin to configuration
2025-05-06 17:15:13 +09:00
Eric Yancey Dauenhauer
127bd0110a
docs: Clarify that useQuery results are immutable (#9108) 2025-05-06 09:46:04 +02:00
Tanner Linsley
8d027847a2 release: v5.75.4 v5.75.4 2025-05-06 07:29:50 +00:00
Dominik Dorfmeister
5c7927d320
fix(types): useSuspenseQuery should type-narrow the Error field (#9105)
* fix(types): useSuspenseQuery should type-narrow the Error field

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

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>

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

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>

* ref: use DistributiveOmit from query-core in vue-query

* chore: fix type error in tests

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-05-06 09:27:15 +02:00
Tanner Linsley
89846b71eb release: v5.75.3 v5.75.3 2025-05-05 18:47:49 +00:00
Arnoud
d82fb69082
refactor(angular-query): use factory for IS_RESTORING default value (#9107) 2025-05-05 20:45:13 +02:00
Dominik Dorfmeister
21218362d4
chore: nextJs versions (#9103) 2025-05-04 11:23:30 +02:00
Tanner Linsley
0cad1da43f release: v5.75.2 v5.75.2 2025-05-04 08:14:36 +00:00
Jonghyeon Ko
91b75a9d3e
chore(react-query): isRestoring -> IsRestoreProvider like QueryClientProvider (#8717) 2025-05-04 10:09:16 +02:00
gopnik5
674f83e4e8
fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs (#9017)
* fix(solid-query): client() doesn't return undefined

* fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs

* fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs

* isolated tests

* chore: add test config

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-05-04 10:08:18 +02:00
MINSEONG KIM
18af64367c
test(react-query): add test case for useSuspenseQuery (#8731)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-05-03 02:41:32 +09:00
Tanner Linsley
ea74c2784f release: v5.75.1 v5.75.1 2025-05-02 11:20:03 +00:00
Raman Paulau
a535a46cde
fix(vue-query): reorder queryOptions and useQuery function overloads to fix type inference (#9088)
* fix(vue-query): more specific function overloads for queryOptions and useQuery to come before general ones (#9069)

This instructs TypeScript to pick correct function overload when initialData is defined.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-02 13:16:23 +02:00
Jonghyeon Ko
df8e02b47f
test(react-query): use fake timers for useQuery.test.tsx (#9086) 2025-05-02 01:43:37 +09:00
Jonghyeon Ko
fd34b98700
test(react-query): use fake timers for useMutation.test.tsx (#9094) 2025-05-02 01:27:07 +09:00