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
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
Wonsuk Choi
79e639ea93
test(query-persist-client-core/persist): add test for ignoring mutation observer events in 'persistQueryClientSubscribe' (#10880) 2026-06-04 14:39:58 +09:00
Wonsuk Choi
0c7b9d6a73
test(query-persist-client-core/persist): add tests for 'persistQueryClient' restore-then-subscribe flow (#10878) 2026-06-04 14:31:06 +09:00
Wonsuk Choi
5fcb4d76a4
test(query-persist-client-core/persist): add test for removing a cache without a timestamp in 'persistQueryClientRestore' (#10877) 2026-06-04 13:48:36 +09:00
Wonsuk Choi
89bae56573
test(query-persist-client-core/persist): add tests for removing an expired or busted cache in 'persistQueryClientRestore' (#10876) 2026-06-04 13:34:04 +09:00
Wonsuk Choi
e6c26c066b
test(query-persist-client-core/persist): wrap the suites in a top-level 'persist' describe and hoist the shared 'queryClient' setup (#10875) 2026-06-04 12:06:37 +09:00
Wonsuk Choi
a6fda44c0d
test(query-persist-client-core/persist): hoist 'queryClient' and 'persister' setup into 'beforeEach' and clear in 'afterEach' (#10874) 2026-06-04 11:19:24 +09:00
Wonsuk Choi
c3be7acfd6
test(query-persist-client-core/persist): add test for hydrating a valid persisted cache in 'persistQueryClientRestore' (#10872) 2026-06-04 10:51:37 +09:00
Wonsuk Choi
8f6f9235d7
test(query-persist-client-core/retryStrategies): add test for 'removeOldestQuery' preserving mutations (#10869) 2026-06-04 00:30:43 +09:00
Wonsuk Choi
b6b9d1acc5
test(query-persist-client-core/retryStrategies): add test for 'removeOldestQuery' returning undefined when there are no queries (#10868) 2026-06-04 00:11:06 +09:00
Wonsuk Choi
64b54a089b
test(query-persist-client-core/retryStrategies): add tests for 'removeOldestQuery' removing the oldest query (#10867) 2026-06-03 23:57:21 +09:00
Wonsuk Choi
dc0effd033
docs(framework/react/guides): replace deprecated 'isServer' with 'environmentManager.isServer()' (#10866) 2026-06-03 22:23:14 +09:00