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

5,036 commits

Author SHA1 Message Date
Dor Alagem
9eff92ed86
fix(hydration): set dataUpdatedAt when pending query resolves before hydration (#10610)
* fix(hydration): set dataUpdatedAt when pending query resolves before hydration

* test(hydration): add cases for dataUpdatedAt when streamed query resolves before hydration

* Add changeset

---------

Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>
2026-06-23 11:28:35 +02:00
dfedoryshchev
4f11927ac5
docs(angular-query): fix "allows to" grammar in JSDoc comments (#10890) 2026-06-19 13:43:35 +02:00
Wonsuk Choi
0bed37a91e
test(query-core): replace deprecated 'toBeCalledWith' and 'toBeCalledTimes' with 'toHaveBeenCalledWith' and 'toHaveBeenCalledTimes' (#10967) 2026-06-17 19:52:08 +09:00
Wonsuk Choi
a7b783a5ed
test(vue-query): replace deprecated 'toBeCalledWith' with 'toHaveBeenCalledWith' (#10968) 2026-06-17 19:50:09 +09:00
Wonsuk Choi
835a299cea
test(vue-query/useMutation): replace 'vi.waitFor' with 'vi.advanceTimersByTimeAsync' in async 'mutateAsync' tests (#10966) 2026-06-17 19:43:02 +09:00
Wonsuk Choi
18d45046d9
test(solid-query/useQuery): add type test for generic indexed-access 'TData' regression guard (#10961) 2026-06-16 17:44:01 +09:00
Wonsuk Choi
84dbefa5d7
test(solid-query/useQuery): move type-only test to 'useQuery.test-d.tsx' (#10960)
* test(solid-query/useQuery): move type-only test to 'useQuery.test-d.tsx'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-16 17:33:21 +09:00
Wonsuk Choi
784c2f0a07
test(solid-query/useQueries): move type-only tests to 'useQueries.test-d.tsx' (#10959) 2026-06-16 14:50:40 +09:00
Wonsuk Choi
ccc843ea44
test({react,preact}-query/useQueries): move type-only tests to 'useQueries.test-d.tsx' (#10958) 2026-06-16 14:01:52 +09:00
Wonsuk Choi
86b949b417
test(solid-query/useQueries): add test for using a provided custom 'queryClient' (#10952) 2026-06-15 04:45:34 +09:00
Wonsuk Choi
588b30f100
test(solid-query/useQueries): add test for not fetching during the restoring period when 'isRestoring' is true (#10951) 2026-06-15 04:36:36 +09:00
Wonsuk Choi
0e2bfe7dcd
test(solid-query): add 'renderWithClient' helper and replace inline 'QueryClientProvider' wrapping in tests (#10950) 2026-06-15 03:13:25 +09:00
Wonsuk Choi
6048592652
test(solid-query/useMutation): split 'should pass meta to mutation' into separate success and error tests (#10949) 2026-06-15 02:26:17 +09:00
Wonsuk Choi
415461346f
test({react,preact}-query/useMutation): split 'should handle conditional logic based on mutate success or failure' into separate success and error tests (#10948) 2026-06-15 02:03:09 +09:00
Wonsuk Choi
8bb5fdea3e
test({react,preact}-query/useMutation): split 'should pass meta to mutation' into separate success and error tests (#10947) 2026-06-15 01:57:35 +09:00
Wonsuk Choi
63d425bdba
fix(scripts): sort 'readFile' before 'readdir' in 'generate-docs' to satisfy 'sort-imports' (#10946) 2026-06-14 22:41:31 +09:00
Wonsuk Choi
ecc321f1a1
chore(knip): update '$schema' to 'knip@6' to match the installed major version (#10945) 2026-06-14 22:35:28 +09:00
Jakub Šimko
47e539a9f4
docs(react-query): recommend against using server actions in queryFn (#10927) 2026-06-14 13:04:16 +02:00
Wonsuk Choi
2555dd0926
test(lit-query): replace deprecated 'toThrowError' with 'toThrow' (#10942) 2026-06-14 19:52:26 +09:00
Wonsuk Choi
e5161df520
test(angular-query-experimental): replace deprecated 'toBeCalledWith' with 'toHaveBeenCalledWith' (#10941) 2026-06-14 19:44:55 +09:00
Wonsuk Choi
ee89b90238
test(query-async-storage-persister): replace deprecated 'toBeCalledTimes' with 'toHaveBeenCalledTimes' (#10940) 2026-06-14 19:41:02 +09:00
Wonsuk Choi
b266bdc525
test(preact-query): replace deprecated 'toBeCalledTimes' with 'toHaveBeenCalledTimes' (#10939) 2026-06-14 19:35:51 +09:00
Wonsuk Choi
c8ebcd7118
test(solid-query): replace deprecated 'toBeCalledTimes' with 'toHaveBeenCalledTimes' (#10938) 2026-06-14 19:30:00 +09:00
Wonsuk Choi
87426a3016
test(react-query): replace deprecated 'toBeCalledTimes' with 'toHaveBeenCalledTimes' (#10937) 2026-06-14 19:20:56 +09:00
Wonsuk Choi
43a4ea0650
test(vue-query): replace deprecated 'toBeCalledWith' and 'toBeCalled' with 'toHaveBeenCalledWith' and 'toHaveBeenCalled' (#10935) 2026-06-14 18:44:47 +09:00
Wonsuk Choi
feb1efd804
test(*): move 'vi.useRealTimers' to the end of 'afterEach' so cleanup runs under fake timers (#10920)
* test(*): move 'vi.useRealTimers' to the end of 'afterEach' so cleanup runs under fake timers

* test(*): move 'vi.useRealTimers' to the end of 'afterEach' in persist-client and devtools suites

* test(svelte-query/createQueries): move 'vi.useRealTimers' to the end of 'afterEach'
2026-06-11 12:08:15 +09:00
Wonsuk Choi
b552179a3b
test(solid-query/useIsMutating): centralize 'queryClient' setup with 'beforeEach' and rename injected/spied clients (#10919) 2026-06-11 10:56:43 +09:00
Wonsuk Choi
b5ad7155b6
test(solid-query/useMutationState): centralize 'queryClient' setup with 'beforeEach' (#10918) 2026-06-11 10:56:33 +09:00
Wonsuk Choi
6c63b82622
test(solid-query/mutationOptions): centralize 'queryClient' setup with 'beforeEach' (#10917) 2026-06-11 10:56:21 +09:00
Wonsuk Choi
c916722e56
test(solid-query/useIsFetching): centralize 'queryClient' setup with 'beforeEach' and rename injected client to 'customClient' (#10916) 2026-06-11 10:56:09 +09:00
Wonsuk Choi
f6c6542668
test(solid-query/useMutation): add 'mutateAsync' callback tests for when 'useMutation' has no callbacks (#10915) 2026-06-11 10:20:31 +09:00
Wonsuk Choi
969a556b42
test(solid-query/useMutation): add 'mutate' callback tests for when 'useMutation' has no callbacks (#10914) 2026-06-11 10:01:47 +09:00
Wonsuk Choi
763782a240
test(svelte-query): align 'advanceTimersByTimeAsync' with 'sleep' duration in wait-for-fire cases (#10908) 2026-06-09 09:43:16 +09:00
Wonsuk Choi
2a4c2c9f1f
test(svelte-query/createQuery): replace 'Promise.resolve' with 'sleep' in render-based 'queryFn' (#10903) 2026-06-09 09:32:47 +09:00
Wonsuk Choi
3c77cd0826
test(svelte-query/createQuery): migrate suitable tests to render with reusable fixtures (#10902) 2026-06-08 02:55:46 +09:00
Wonsuk Choi
4077908fbd
test(query-core/queryObserver): add tests for 'notifyOnChangeProps' as a function controlling listener notification (#10900) 2026-06-07 16:51:25 +09:00
Wonsuk Choi
01616c69b3
test(query-core/queryObserver): add test for 'refetchInterval' as a function called with the query (#10901) 2026-06-07 16:23:47 +09:00
Wonsuk Choi
84cbbdb320
test(query-core/queryObserver): add test for 'refetchInterval' as a function refetching at the returned interval (#10899) 2026-06-07 16:11:06 +09:00
Wonsuk Choi
413fdc5101
test(query-core/queryObserver): add tests for 'refetchOnWindowFocus' as a function in 'shouldFetchOnWindowFocus' (#10898) 2026-06-07 13:32:44 +09:00
Wonsuk Choi
708d9c5b83
test(query-core/queryObserver): add test for 'refetchOnWindowFocus' as "always" in 'shouldFetchOnWindowFocus' (#10896) 2026-06-07 13:11:47 +09:00
Wonsuk Choi
1d12194a90
test(query-core/queryObserver): unify all test descriptions to start with 'should' (#10897) 2026-06-07 12:59:39 +09:00
Wonsuk Choi
ba7fbc443b
test(query-core/queryObserver): split 'shouldFetchOnWindowFocus' test by 'refetchOnWindowFocus' value (#10889) 2026-06-06 01:49:02 +09:00
Wonsuk Choi
b63da8a294
test(query-core/queryCache): add test for 'remove' only deleting the instance currently stored under its 'queryHash' (#10888) 2026-06-06 00:21:24 +09:00
Wonsuk Choi
bd0a264e5e
test(query-core/queryObserver): add test for promise not rejecting when 'experimental_prefetchInRender' is enabled (#10887) 2026-06-05 23:03:14 +09:00
Wonsuk Choi
92d9e2c01a
test(query-core/onlineManager): add test for online status updates from window events (#10886) 2026-06-05 22:46:46 +09:00
Wonsuk Choi
3270e09ac0
docs(reference/QueryCache): correct the 'find' and 'findAll' options to match their filter types (#10884) 2026-06-04 20:35:35 +09:00
Minh Lê
525e3168b5
docs(reference/QueryCache): use the v5 filters-object form in 'find' and 'findAll' examples (#10873)
docs(query): use the v5 filters-object form in QueryCache examples
2026-06-04 19:49:06 +09:00
Wonsuk Choi
c2d73d5636
test(query-persist-client-core/createPersister): add test for 'retrieveQuery' returning data without a restore callback (#10883) 2026-06-04 15:29:55 +09:00
Wonsuk Choi
c4b39ff8ed
test(query-persist-client-core/createPersister): add test for 'persisterGc' keeping valid entries (#10882) 2026-06-04 15:06:55 +09:00
Wonsuk Choi
0a0e2d9184
test(query-persist-client-core/createPersister): add tests for removing entries that fail to deserialize (#10881) 2026-06-04 14:52:23 +09:00