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
Wonsuk Choi
c2ece73848
test(svelte-query/createMutation): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync' (#9414)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-12 23:55:08 +09:00
Wonsuk Choi
0cd4e7d2c6
test(svelte-query/createInfiniteQuery): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync' (#9413)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-12 23:50:45 +09:00
Wonsuk Choi
c5bd08352a
test(solid-query/useInfiniteQuery): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync', 'expect' (#9411) 2025-07-12 23:48:24 +09:00
Wonsuk Choi
4349e75aed
test(solid-query/useMutation): remove 'vi.waitFor', replace 'findByText' with 'getByText', and add 'advanceTimersByTimeAsync', 'expect' (#9409) 2025-07-11 20:33:51 +02:00
Tanner Linsley
390424bcdd release: v5.83.0 v5.83.0 2025-07-11 17:00:39 +00:00
Dominik Dorfmeister
23c8908086
feat(core): QueryObserver returns isEnabled flag (#9408)
* feat(core): QueryObserver returns isEnabled flag

* test: solid and svelte
2025-07-11 18:57:28 +02:00
Wonsuk Choi
0569891b77
test(solid-query/suspense): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync', 'expect' (#9407) 2025-07-11 13:08:35 +02:00
Wonsuk Choi
d6930fdd74
test(svelte-query/createMutation): switch to fake timers, replace 'waitFor' with 'vi.waitFor', and add 'expect' (#9382)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:17:54 +02:00
Wonsuk Choi
ab7fd72802
test(svelte-query/createQueries): switch to fake timers, and replace 'waitFor' with 'vi.waitFor' (#9383) 2025-07-11 09:17:37 +02:00
Wonsuk Choi
2212fff59e
test(svelte-query/createQuery): switch to fake timers, replace 'waitFor' with 'vi.waitFor', and add 'expect' (#9384) 2025-07-11 09:17:23 +02:00
Wonsuk Choi
06cb8ebfe3
test(svelte-query/useIsFetching): switch to fake timers, add 'expect', 'vi.waitFor', and replace 'findByText' with 'getByText' (#9386) 2025-07-11 09:17:15 +02:00
Wonsuk Choi
9ecfbf79d0
test(solid-query/useIsMutating): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync' (#9404) 2025-07-11 09:16:56 +02:00
Wonsuk Choi
89f948322a
test(solid-query/useMutationState): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync', 'expect' (#9405) 2025-07-11 09:16:44 +02:00
Wonsuk Choi
daad8e30f9
test(solid-query/useQueries): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync', 'expect' (#9406) 2025-07-11 09:16:10 +02:00
Wonsuk Choi
b32904cd21
test(svelte-query/createInfiniteQuery): switch to fake timers, and replace 'waitFor' with 'vi.waitFor' (#9381)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 14:00:48 +09:00
Wonsuk Choi
e2bcbe8411
test(solid-query/useIsFetching): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync', 'expect' (#9403)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 13:47:39 +09:00
Wonsuk Choi
eb1cab795f
test(solid-query/transition): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync' (#9402)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 13:41:52 +09:00
Wonsuk Choi
93978d326d
test(solid-query/QueryClientProvider): remove 'vi.waitFor', and add 'advanceTimersByTimeAsync', 'expect' (#9401)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 13:35:00 +09:00
Wonsuk Choi
32467aa330
test(svelte-query/useMutationState): switch to fake timers, and replace 'waitFor' with 'vi.waitFor' (#9388)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 13:30:46 +09:00
Wonsuk Choi
c597f76e56
test(svelte-query/useIsMutating): switch to fake timers, add 'expect', 'vi.waitFor', and replace 'findByText' with 'getByText' (#9387)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:59:10 +09:00
Wonsuk Choi
bce4d7ea51
test(solid-query/useIsFetching): switch to fake timers, replace 'waitFor' with 'vi.waitFor' and 'findByText' with 'getByText' (#9377)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:51:06 +09:00
Wonsuk Choi
c0fd94e50d
test(svelte-query/QueryClientProvider): switch to fake timers, replace 'waitFor' with 'vi.waitFor', and add 'expect' (#9385)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:46:25 +09:00
Wonsuk Choi
f7c83c2045
test(solid-query/useQueries): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9380)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:31:28 +09:00
Wonsuk Choi
d1c8cff3c9
test(solid-query/suspense): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9375)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:27:28 +09:00
Wonsuk Choi
94f2150ff1
test(solid-query/useMutationState): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9379)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:24:18 +09:00
Wonsuk Choi
509064a33c
test(solid-query/useIsMutating): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9378)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:16:04 +09:00
Wonsuk Choi
27d82a715c
test(solid-query/transition): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9376)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:11:47 +09:00
Wonsuk Choi
a0aeac04c1
test(solid-query/useInfiniteQuery): switch to fake timers, and replace 'waitFor' with 'vi.waitFor' (#9391)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:08:03 +09:00
Wonsuk Choi
c66af8acc0
test(solid-query/QueryClientProvider): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9374)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 11:03:19 +09:00
Wonsuk Choi
8c79719681
test(vue-query/vueQueryPlugin): switch to fake timers and replace 'sleep' with 'advanceTimersByTimeAsync' (#9372)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:56:16 +09:00
Wonsuk Choi
47f7e8634b
test(vue-query/useIsMutating): switch to fake timers and replace 'sleep' with 'advanceTimersByTimeAsync' (#9373)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:53:01 +09:00
Wonsuk Choi
367a96e86e
test(vue-query/useIsFetching): switch to fake timers and replace 'sleep' with 'advanceTimersByTimeAsync' (#9370)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:49:17 +09:00
Wonsuk Choi
fc0b23e120
test(vue-query/useQueries): switch to fake timers and replace 'sleep' with 'advanceTimersByTimeAsync' (#9369)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:41:46 +09:00
Wonsuk Choi
79893c8bab
test(vue-query/queryClient): switch to fake timers and replace 'sleep' with 'advanceTimersByTimeAsync' (#9371)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:34:52 +09:00
Wonsuk Choi
fc2a95cfff
test(vue-query/useInfiniteQuery): switch to fake timers and replace 'sleep' with 'advanceTimersByTimeAsync' (#9368)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:31:54 +09:00
Wonsuk Choi
c9daf2cab2
test(react-query/usePrefetchQuery): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' (#9355)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:27:00 +09:00
Wonsuk Choi
fd7c6557d3
test(react-query/useQueries): remove 'waitFor' and add 'advanceTimersByTimeAsync' (#9367)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 10:13:08 +09:00
Wonsuk Choi
f6085d0f99
test(react-query/useInfiniteQuery): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' (#9366)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:49:16 +09:00
Wonsuk Choi
c6808798f5
test(react-query/useMutation): remove 'vi.waitFor', add 'advanceTimersByTimeAsync' and replace 'findByText' with 'getByText' (#9352)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:42:07 +09:00
Wonsuk Choi
57653780bb
test(react-query/mutationOptions): switch to fake timers, remove 'vi.waitFor', and add 'advanceTimersByTimeAsync' (#9397)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:37:13 +09:00
Wonsuk Choi
f580f08933
test(react-query/suspense): remove 'vi.waitFor' and add 'advanceTimersByTime' (#9350)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:33:16 +09:00
Wonsuk Choi
eaf768b5ec
test(react-query/useQuery): remove 'vi.waitFor', add 'advanceTimersByTimeAsync' and replace 'findByText' with 'getByText' (#9363)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:28:56 +09:00
Wonsuk Choi
a0a0812c37
test(react-query/useSuspenseQueries): remove 'waitFor' and add 'advanceTimersByTimeAsync' (#9356)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:22:02 +09:00
Tanner Linsley
4287e68336 release: v5.82.0 v5.82.0 2025-07-09 15:03:13 +00:00
우빈
f3cbfc51da
feat(react-query): add mutationOptions (#8960)
* feat(react-query): add mutationOptions

* test(react-query): add DataTag test case

* fix(react-query): remove unnecessary types from mutation

* fix(react-query): remove unncessary type overload

* chore(react-query): add mutationOptions to barrel file

* fix(react-query): fix test eslint issue

* docs(react-query): add more examples

* test(react-query): add more test cases

* chore(react-query): Change mutaitonKey to required

* fix(react-query): fix test code type error

* test(react-query): add testcase when used with other mutation util

* fix(react-query): fix error test code and avoid use deprecateed method

* fix(react-query): fix error test code and avoid use deprecateed method

* fix(react-query): fix import detect error

* fix(react-query): fix import detect error

* fix(react-query): add function overload

* test(react-query): fix mutation options test code

* Update docs/framework/react/typescript.md

* Update docs/framework/react/reference/mutationOptions.md

* Update docs/framework/react/typescript.md

* fix: update mutationOptions type definition to allow optional mutationKey with restricting filter when mutationKey wasn't passed

* ci: apply automated fixes

* chore: add Nick-Lucas as co-author

Co-authored-by: Nick Lucas <8896153+Nick-Lucas@users.noreply.github.com>

* test(react-query): fix test code and add used with useMutation without mutationKey

* Update packages/react-query/src/__tests__/mutationOptions.test-d.tsx

* docs: add mutationOptions to sidebar config

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nick Lucas <8896153+Nick-Lucas@users.noreply.github.com>
2025-07-09 16:59:41 +02:00
Wonsuk Choi
ed8cc23454
test(react-query/useSuspenseQuery): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' (#9364)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 18:11:00 +09:00
Wonsuk Choi
0907dabbf2
test(react-query/QueryResetErrorBoundary): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' (#9365)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 18:01:43 +09:00
Wonsuk Choi
d449f6f367
test(react-query/usePrefetchInfiniteQuery): switch to fake timers, remove 'waitFor' and add 'advanceTimersByTimeAsync' (#9354)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 17:55:58 +09:00
Wonsuk Choi
ac2fa17f98
test(react-query/QueryResetErrorBoundary): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9349)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 01:00:58 +09:00
Wonsuk Choi
ed66939ff7
test(react-query/useSuspenseQuery): switch to fake timers and replace 'waitFor' with 'vi.waitFor' (#9357)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 00:50:04 +09:00