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
async
cache
data
fetch
graphql
hooks
query
react
rest
solid
stale
stale-while-revalidate
svelte
typescript
update
vue
- TypeScript 98%
- JavaScript 1.2%
- Svelte 0.7%
* fix(query-core): shallowEqualObjects ignores key-set differences when counts match `shallowEqualObjects` only iterated the keys of `a` and compared `a[key] !== b[key]`. When both objects have the same number of keys but different key names, a key present on `a` but absent on `b` reads as `undefined` on `b`; if the corresponding value on `a` is also `undefined` (or otherwise equal), the function incorrectly reported the objects as equal. This breaks the documented "shallow compare objects" contract and can suppress an `observerOptionsUpdated` notification when an observer's defaulted options swap one key for another between renders. Fix: require each key of `a` to be an own-property of `b` before comparing values. * fix(query-core): ignore inherited properties in shallow equality * test(query-core): use toBe for shallow equality assertions --------- Co-authored-by: safechem <sales@alphachemicals.ie> Co-authored-by: TkDodo <office@dorfmeister.cc> |
History
|
|
|---|---|---|
| .changeset | ||
| .github | ||
| .nx/workflows | ||
| docs | ||
| examples | ||
| integrations | ||
| media | ||
| packages | ||
| scripts | ||
| .coderabbit.yaml | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .size-limit.json | ||
| AGENTS.md | ||
| AI_POLICY.md | ||
| CONTRIBUTING.md | ||
| FUNDING.json | ||
| knip.ts | ||
| LICENSE | ||
| nx.json | ||
| oxfmt.config.ts | ||
| oxlint.config.ts | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.json | ||
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
- We welcome issues and pull requests!
- Participate in GitHub discussions
- Chat with the community on Discord
- See CONTRIBUTING.md for setup instructions
Partners
|
|
|
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 CHATExplore the TanStack Ecosystem
- TanStack Config – Tooling for JS/TS packages
- TanStack DB – Reactive sync client store
- TanStack DevTools – Unified devtools panel
- TanStack Form – Type‑safe form state
- TanStack Pacer – Debouncing, throttling, batching
- TanStack Query – Async state & caching
- TanStack Ranger – Range & slider primitives
- TanStack Router – Type‑safe routing, caching & URL state
- TanStack Start – Full‑stack SSR & streaming
- TanStack Store – Reactive data store
- TanStack Table – Headless datagrids
- TanStack Virtual – Virtualized rendering
… and more at TanStack.com »