0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query. https://tanstack.com/query
  • TypeScript 98%
  • JavaScript 1.2%
  • Svelte 0.7%
Find a file
Wonsuk Choi d5402b9284
docs(preact-query): improve JSDoc examples across hooks and options factories (#11301)
* docs(preact-query): wrap 'useIsFetching' example in a component

* docs(preact-query): wrap 'useQueries' examples in components and add 'isError' handling

* docs(preact-query): wrap 'useIsMutating' and 'useMutationState' examples in components

* docs(preact-query): wrap 'queryOptions' examples in components

* docs(preact-query): wrap 'infiniteQueryOptions' example in a component

* fix(preact-query): correctly distinguish error state from loading in 'infiniteQueryOptions' example

* fix(preact-query): correct mutation terminology and filter by success status in 'useMutationState' examples

* docs(preact-query): destructure useInfiniteQuery result in 'infiniteQueryOptions' example

* docs(preact-query): rename 'variables' to 'pendingVariables' in 'useMutationState' example

* docs(preact-query): rename 'data' to 'savedPosts' in 'useMutationState' examples

* docs(preact-query): rename 'results'/'result' to 'addResults'/'addResult' in 'useMutation' Promise.allSettled example

* docs(preact-query): rename 'latest' to 'latestSavedPost' in 'useMutationState' example

* docs(preact-query): render fetched pages and handle loading/error states in 'useInfiniteQuery' examples

* docs(preact-query): render infinite query lists as '<ul>'/'<li>' instead of flat '<p>' tags

* docs(preact-query): show hover-triggered prefetch instead of an unlocated 'Elsewhere' comment in 'queryOptions'/'infiniteQueryOptions' examples

* docs(preact-query): move hover-prefetch examples from 'queryOptions'/'infiniteQueryOptions' to 'useQuery'/'useInfiniteQuery'

* docs(preact-query): render list examples as '<ul>'/'<li>' and fix undefined refs across remaining hooks

* docs(preact-query): name the prefetch id in 'queryOptions'/'infiniteQueryOptions' examples instead of an unexplained literal

* docs(preact-query): add 'skipToken' examples for type-safe conditional disabling

* docs(preact-query): use 'isLoading' with optional chaining in the infinite-query 'skipToken' examples

* docs(preact-query): add missing 'isPending'/'isError' handling across 'queryOptions'/'useQuery'/'infiniteQueryOptions'/'useInfiniteQuery' examples

* docs(preact-query): keep 'initialData' examples showing data alongside errors instead of hiding it

* docs(preact-query): use scroll-triggered pagination in 'useInfiniteQuery' examples, add a 'fetchNextPage' trigger to 'infiniteQueryOptions'

* docs(preact-query): guard scroll-triggered 'fetchNextPage' with 'isFetching', move cross-reference out of '@example'

* docs(preact-query): move duplicated usage examples from 'queryOptions'/'infiniteQueryOptions' into their hooks

* docs(preact-query): remove duplicated basic-mutation example from 'mutationOptions', trim boilerplate '@remarks'

* docs(preact-query): add 'combine' example to 'useSuspenseQueries', link 'useSuspenseInfiniteQuery' to 'useInfiniteQuery' and document its waterfall/refetch risks

* docs(preact-query): drop irrelevant 'useSuspenseQueries' reference from 'useSuspenseInfiniteQuery' waterfall remark

* docs(preact-query): strengthen 'useMutation''s '@see' pointer to 'mutationOptions' with its 'mutationKey' lookup benefit

* docs(preact-query): add blank lines around 'isPending'/'isError' guards for consistency with other examples
History 2026-08-30 13:15:47 +09:00
.changeset ci: Version Packages (#11316) 2026-08-28 01:03:02 +09:00
.github docs: clarify contribution guidelines (#11280) 2026-08-25 07:18:51 +02:00
.nx/workflows ci: switch to nxCloudId (#9697) 2025-09-27 12:50:53 +10:00
docs docs(preact-query): improve JSDoc examples across hooks and options factories (#11301) 2026-08-30 13:15:47 +09:00
examples ci: Version Packages (#11316) 2026-08-28 01:03:02 +09:00
integrations ci: Version Packages (#11316) 2026-08-28 01:03:02 +09:00
media docs: use the dynamic README header endpoint (#11136) 2026-08-03 13:43:19 +02:00
packages docs(preact-query): improve JSDoc examples across hooks and options factories (#11301) 2026-08-30 13:15:47 +09:00
scripts chore(scripts/create-github-release): fix release-notes diff range after 'Version Packages' PR is squash-merged (#11279) 2026-08-25 11:12:36 +09:00
.coderabbit.yaml docs: clarify contribution guidelines (#11280) 2026-08-25 07:18:51 +02:00
.editorconfig Initial commit 2019-09-10 13:22:26 -06:00
.gitattributes chore: force type import (#4202) 2022-09-23 10:55:22 +02:00
.gitignore fix(lit-query): migrate to standard tsdown build so 'build' output is cached by nx and 'test:build' passes (#10943) 2026-08-20 09:34:13 +09:00
.npmrc ci: update workspace config (#9671) 2025-09-21 23:26:52 +10:00
.nvmrc chore(.nvmrc): update Node to 'v24.16.0' (Krypton LTS) (#10807) 2026-05-26 17:57:16 +09:00
.prettierignore chore: tsup -> tsdown (#11222) 2026-08-18 15:19:43 +02:00
.size-limit.json chore: size-limit 2025-12-31 10:33:53 +01:00
AGENTS.md docs: clarify contribution guidelines (#11280) 2026-08-25 07:18:51 +02:00
CONTRIBUTING.md docs: clarify contribution guidelines (#11280) 2026-08-25 07:18:51 +02:00
eslint.config.js chore: tsup -> tsdown (#11222) 2026-08-18 15:19:43 +02:00
FUNDING.json funding changes 2024-02-15 00:59:57 -07:00
knip.json chore: update knip (#11262) 2026-08-23 19:24:11 +02:00
LICENSE chore: Update outdated LICENSE year (#4266) 2022-10-08 08:01:32 +02:00
nx.json chore(nx.json): drop dead 'dist-cjs' build output entry (#11235) 2026-08-20 16:09:40 +09:00
package.json chore: update knip (#11262) 2026-08-23 19:24:11 +02:00
pnpm-lock.yaml ci: Version Packages (#11316) 2026-08-28 01:03:02 +09:00
pnpm-workspace.yaml fix(query-devtools): remove solid-js import from declarations (#11300) 2026-08-26 10:50:02 +02:00
prettier.config.js chore: Update to prettier v3.1.0 (#6378) 2023-11-15 14:15:47 +11:00
README.md docs: use the dynamic README header endpoint (#11136) 2026-08-03 13:43:19 +02:00
tsconfig.json fix(vue-devtools): fix style prop type (#10087) 2026-02-11 17:06:18 +01:00

TanStack Query

TanStack Query

An async state management library built to simplify fetching, caching, synchronizing, and updating server state.

  • Protocol‑agnostic fetching (REST, GraphQL, promises, etc.)
  • Caching, refetching, pagination & infinite scroll
  • Mutations, dependent queries & background updates
  • Prefetching, cancellation & React Suspense support

Read the docs →

Get Involved

Partners

CodeRabbit Cloudflare
Query & you?

We're looking for TanStack Query Partners to join our mission! Partner with us to push the boundaries of TanStack Query and build amazing things together.

LET'S CHAT

Explore the TanStack Ecosystem

… and more at TanStack.com »