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

4,997 commits

Author SHA1 Message Date
Dami Oyeniyi
54d9fc80f7
fix(examples): guard missing #app mount target in svelte simple example (#10144) 2026-03-01 18:35:47 +01:00
Wonsuk Choi
75fab824fe
test(preact-query/useQueries): add test for not fetching during restoring period when 'isRestoring' is true (#10197) 2026-03-01 17:39:16 +01:00
Wonsuk Choi
282cdc2333
test(react-query/useQueries): add test for not fetching during restoring period when 'isRestoring' is true (#10196)
test(react-query/useQueries): add test for 'isRestoring' to cover restoring period branch
2026-03-01 17:38:59 +01:00
Wonsuk Choi
a865c15c7a
test(preact-query/useSuspenseQueries): align cached data test with react-query to verify background refetch (#10195) 2026-03-01 17:37:38 +01:00
René Klomp
e505568f4d
feat(experimental_createQueryPersister): removeItem if deserialize fails (#10190)
* removeItem if deserialize fails

* changeset

* Use storageKeyPrefix

* Set storageKeyPrefix outside loop

* changeset is patch
2026-02-28 20:21:40 +01:00
Wonsuk Choi
0da627ba70
docs({solid,vue}-query/broadcastQueryClient): remove unnecessary 'replace' that doesn't match source content (#10193) 2026-02-26 17:06:46 +01:00
Roitium.
3f30619e7f
docs(react-native): fix example to include initial state (#10172)
* docs: fix expo-network example code block

* Apply suggestions from code review

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-26 15:14:24 +01:00
github-actions[bot]
4b0f51aa93
ci: Version Packages (#10191) @tanstack/preact-query@5.91.1 @tanstack/query-async-storage-persister@5.90.23 @tanstack/query-persist-client-core@5.92.0 @tanstack/query-sync-storage-persister@5.90.23 @tanstack/react-query-persist-client@5.90.23 @tanstack/solid-query-persist-client@5.90.24 @tanstack/svelte-query-persist-client@6.0.21
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-26 15:05:26 +01:00
Pavan Shinde
bee96b7ca7
docs(angular): fix QueryClient field in paginated guide (#10147) 2026-02-26 15:04:59 +01:00
Wonsuk Choi
b5e88e05cc
refactor(preact-query/useQueries): remove unreachable 'willFetch' branch in suspense promise collection (#10188) 2026-02-26 14:55:46 +01:00
Wonsuk Choi
fef7988924
docs(angular/guides/caching): fix typo 'date' to 'data' (#10189) 2026-02-26 14:54:30 +01:00
Wonsuk Choi
74276f06ac
test({react,preact,angular}-query/{queryOptions,infiniteQueryOptions,mutationOptions}): replace 'toStrictEqual' with 'toBe' and add type annotations (#10192)
test({react,preact,angular}-query/{queryOptions,infiniteQueryOptions,mutationOptions}): replace 'toStrictEqual' with 'toBe' for identity function assertion and add explicit type annotations to 'mutationOptions'
2026-02-26 14:54:09 +01:00
Wonsuk Choi
1f2aef9897
test(svelte-query/infiniteQueryOptions): add runtime test for identity function (#10177)
* test(svelte-query/infiniteQueryOptions): add runtime test for identity function

* test(svelte-query/infiniteQueryOptions): replace type annotation with 'as const' for consistency

* Apply suggestions from code review

* test(svelte-query/infiniteQueryOptions): add explicit 'CreateInfiniteQueryOptions' type annotation
2026-02-26 14:53:34 +01:00
Wonsuk Choi
4784fb3fd4
test(react-query/useSuspenseQueries): add test for suspending only pending queries when some already have cached data (#10126)
* test(react-query/useSuspenseQueries): add test for suspending only pending queries when some already have cached data

* ci: apply automated fixes

* test(react-query/useSuspenseQueries): use different 'sleep' times and verify background refetch settles with fresh data

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-26 14:52:47 +01:00
Wonsuk Choi
82d97fba4e
test(query-core/queriesObserver): add test for 'trackResult' property tracking synchronization across all observers (#10185)
* test(query-core/queriesObserver): add test for 'trackResult' property tracking synchronization across all observers

* test(query-core/queriesObserver): remove unnecessary 'getCombinedResult' call in 'trackResult' test
2026-02-26 14:51:42 +01:00
Wonsuk Choi
d1485ddf54
test(query-core/mutationCache): add test for deleting scope when removing the only mutation in that scope (#10181) 2026-02-26 14:50:09 +01:00
Wonsuk Choi
0d38bb56bc
test(preact-query/useQuery): add test for not fetching during restoring period when 'isRestoring' is true (#10180) 2026-02-26 14:49:38 +01:00
Wonsuk Choi
520e787469
test(svelte-query/HydrationBoundary): add test for hydrating queries to the cache on context (#10179)
* test(svelte-query/HydrationBoundary): add test for hydrating queries to the cache on context

* refactor(svelte-query/HydrationBoundary): create 'QueryClient' inside component instead of receiving via props
2026-02-26 14:49:13 +01:00
Wonsuk Choi
e730c767e9
test(solid-query/useQuery): add test for string 'reconcile' option maintaining referential equality (#10169)
* test(solid-query/useQuery): add test for string 'reconcile' option maintaining referential equality

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-26 14:46:56 +01:00
Wonsuk Choi
aa0e242bd9
test(solid-query/useQuery): add test for 'isRestoring' transition from true to false triggering refetch (#10168)
* test(solid-query/useQuery): add test for 'isRestoring' transition from true to false triggering refetch

* test(solid-query/useQuery): add 'fetchStatus' assertion after restoring completes
2026-02-26 14:45:17 +01:00
Wonsuk Choi
377aaa265c
test(solid-query/useQuery): add test for refetching query when 'queryClient' changes (#10167)
* test(solid-query/useQuery): add test for refetching query when 'queryClient' changes

* ci: apply automated fixes

* test(solid-query/useQuery): isolate explicit client accessor from provider context

* test(solid-query/useQuery): remove unnecessary 'QueryClientProvider' wrapper from explicit client test

* test(solid-query/useQuery): replace 'Accessor<QueryClient>' with '() => QueryClient' type annotation

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-26 14:44:23 +01:00
Wonsuk Choi
808d84aa3b
test(react-query/useQuery): add test for not fetching during restoring period when 'isRestoring' is true (#10166)
* test(react-query/useQuery): add test for not fetching during restoring period when 'isRestoring' is true

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-26 14:43:59 +01:00
Wonsuk Choi
01ffe4f142
chore(svelte-query/vite.config): enable coverage collection by default (#10151) 2026-02-26 14:43:14 +01:00
Wonsuk Choi
af6f63a314
test(svelte-query/useMutationState): add test for 'select' option in 'useMutationState' (#10150) 2026-02-26 14:42:42 +01:00
Wonsuk Choi
d27b5beea7
test(preact-query/ssr): add test for 'useMutationState' returning empty array (#10149) 2026-02-26 14:42:11 +01:00
Wonsuk Choi
e31bda9136
docs(solid-query): convert guide docs to ref-based with Solid-style code (#10146)
* docs(react-query/guides): add markers for solid-query guide overrides

* docs(solid-query/guides): convert guide docs to ref-based with Solid-style code

* docs(config): add solid offline example entry and update lockfile

* ci: apply automated fixes

* docs(react/guides/caching): unify staleTime wording to passive voice

* chore(pnpm-lock.yaml): fix broken lockfile for 'msw' dependency

* docs(solid/guides/caching): remove redundant 'StaleNote' override now unified with react

* docs(react/guides/caching): remove unused 'StaleNote' markers

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-26 14:27:51 +01:00
René Klomp
978fc52728
feat(experimental_createQueryPersister): Add removeQueries (#10186)
* Add removeQueries

* Docs

* ci: apply automated fixes

* Fix test

* Add changeset

* Udpate docs

* Await removeItem

* Improve test names

* Update .changeset/fifty-zebras-stay.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Add coderabbitai suggestion

* More data integrity checks

* removeItem if deserialize fails

* removeItem if deserialize fails in retrieveQuery as well

* removeItem if deserialize fails in restoreQueries

* Revert changes outside removeQueries scope

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-26 12:44:41 +01:00
Wonsuk Choi
d7d102e82e
docs(solid-query/quick-start): remove incomplete Available Functions section and fix outdated 'create' references (#10140)
* docs(solid-query/quick-start): fix outdated 'create' prefix to 'use' in Available Functions list

* docs(solid-query/quick-start): remove incomplete Available Functions section
2026-02-25 20:48:54 +01:00
Wonsuk Choi
b3b4f6092f
test(solid-query/queryOptions): add runtime test for identity function behavior (#10135)
* test(solid-query/queryOptions): add runtime test for identity function behavior

* chore: trigger CI

* Apply suggestion from @TkDodo

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2026-02-25 20:47:33 +01:00
renovate[bot]
807c8a931f
chore(deps): update dependency @astrojs/node to v9.5.4 [security] (#10183)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-24 12:46:55 +00:00
Wonsuk Choi
eb7dca5f89
test(preact-query/suspense): add test cases for 'static' staleTime with number and function (#10134) 2026-02-23 00:25:16 -06:00
vedanta
4511b636ea
chore(preact-query): Preact docs match fix (#10171)
* chore(preact-query): dual-match-pattern in docs

* window-focus-native fix
2026-02-22 12:57:08 -06:00
vedanta
ce94b37d6a
preact-docs problems fixed (#10160)
Things like Preact-Native, Preact 18.0+ is a remnant of using react-docs but without section-wise splitting. This handles that.
2026-02-21 19:37:16 -06:00
renovate[bot]
e5fcc65e5b
chore(deps): update dependency svelte to v5.51.5 [security] (#10157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-21 00:50:26 +00:00
renovate[bot]
a487708aa8
chore(deps): update dependency @sveltejs/kit to v2.52.2 [security] (#10158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-20 20:59:19 +00:00
Wonsuk Choi
bb257c2835
test(solid-query/useMutationState): add test for default 'options' parameter coverage (#10148) 2026-02-18 09:49:39 +01:00
Wonsuk Choi
984bfa6f15
test(preact-query/useSuspenseQueries): add test for suspending only pending queries when some already have cached data (#10133) 2026-02-16 14:48:05 +01:00
Wonsuk Choi
d7213f7ce8
test(query-core/mutation): add test for 'optionalRemove' when remaining observer exists (#10127) 2026-02-13 18:41:03 +01:00
Wonsuk Choi
4987d587e1
ci(labeler-config): add missing 'preact-query' package label (#10125) 2026-02-13 15:19:16 +01:00
Pavan Shinde
a25e99d6cb
docs: fix TanStack capitalization (#10128) 2026-02-13 12:07:24 +01:00
Wonsuk Choi
8830b73dae
chore(preact-query/vite.config): exclude '__tests__' directory from coverage reports (#10124) 2026-02-13 08:49:31 +01:00
Pavan Shinde
c2325ed0fe
docs(angular): fix TypeScript anchor link in mutation options (#10121) 2026-02-12 14:00:53 +01:00
github-actions[bot]
6252715573
ci: Version Packages (#10117) @tanstack/vue-query-devtools@6.1.5
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-11 17:37:27 +01:00
Lachlan Collins
4ed9dc1a7a
fix(vue-devtools): fix style prop type (#10087)
* fix(vue-devtools): fix style prop type

* Add changeset
2026-02-11 17:06:18 +01:00
라몽이
e23fa5dbaf
fix(query-codemods): fix duplicate 'a' typo in placeholder data error (#10116)
fix(query-codemods): fix duplicate 'a' typo in placeholder data error message
2026-02-11 10:59:37 +01:00
라몽이
4b50c20be6
docs(focusManager): fix duplicate 'event' typo in test comment (#10114)
Remove the duplicated "event" in the test comment of focusManager.test.tsx.
2026-02-11 10:59:01 +01:00
Yoav Rabby
b9ed67caf9
docs(community-projects): Add Tanstack Query Visualizer to the list o… (#10085)
docs(community-projects): Add Tanstack Query Visualizer to the list of community projects
2026-02-11 10:56:35 +01:00
github-actions[bot]
08050cb3eb
ci: Version Packages (#10115) @tanstack/react-query@5.90.21
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-11 10:13:08 +01:00
Wonsuk Choi
c5def66a18
refactor(react-query/useQueries): remove unreachable 'willFetch' branch in suspense promise collection (#10082)
* refactor(react-query/useQueries): remove unreachable 'willFetch' branch in suspense promise collection

* Refactor useQueries to remove unreachable code

Refactor the useQueries function to improve code clarity by removing an unreachable 'willFetch' branch in the suspense promise collection.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2026-02-11 09:42:08 +01:00
Wonsuk Choi
ed37a87ba9
chore(.gitignore): add 'next-env.d.ts' globally and remove tracked files (#10083) 2026-02-11 09:39:51 +01:00