init: claude
This commit is contained in:
1 parent
2def250609
commit
3b87993d60
150 files changed
+29191
No files matched your search
@@ -0,0 +1,84 @@
|
||||
# Tanstack-Query
|
||||
|
||||
Comprehensive TanStack Query (React Query) knowledge base combining official documentation and source code. Use when working with data fetching, caching, synchronization, mutations, infinite queries, optimistic updates, or server state management in React applications.
|
||||
|
||||
## 📚 Sources
|
||||
|
||||
This skill combines knowledge from multiple sources:
|
||||
|
||||
- ✅ **Documentation**: https://tanstack.com/query/latest/
|
||||
- Pages: 300
|
||||
- ✅ **GitHub Repository**: TanStack/query
|
||||
- Code Analysis: deep
|
||||
- Issues: 100
|
||||
|
||||
## ⚠️ Data Quality
|
||||
|
||||
**168 conflicts detected** between sources.
|
||||
|
||||
**Conflict Breakdown:**
|
||||
- missing_in_docs: 168
|
||||
|
||||
See `references/conflicts.md` for detailed conflict information.
|
||||
|
||||
## 🔧 API Reference
|
||||
|
||||
*Merged from documentation and code analysis*
|
||||
|
||||
|
||||
### 💻 Undocumented APIs
|
||||
|
||||
*Found in code but not in documentation (168 total)*
|
||||
|
||||
#### `AddTodo`
|
||||
|
||||
*Source: code*
|
||||
|
||||
---
|
||||
|
||||
#### `App`
|
||||
|
||||
*Source: code*
|
||||
|
||||
---
|
||||
|
||||
#### `Blink`
|
||||
|
||||
*Source: code*
|
||||
|
||||
---
|
||||
|
||||
#### `Button`
|
||||
|
||||
*Source: code*
|
||||
|
||||
---
|
||||
|
||||
#### `Character`
|
||||
|
||||
*Source: code*
|
||||
|
||||
---
|
||||
|
||||
|
||||
*See references/api/ for complete API documentation*
|
||||
|
||||
## 📖 Reference Documentation
|
||||
|
||||
Organized by source:
|
||||
|
||||
- [Documentation](references/documentation/)
|
||||
- [Github](references/github/)
|
||||
|
||||
## 💡 When to Use This Skill
|
||||
|
||||
Use this skill when you need to:
|
||||
- Understand how to use tanstack-query
|
||||
- Look up API documentation
|
||||
- Find usage examples
|
||||
- Check for known issues or recent changes
|
||||
- Review release history
|
||||
|
||||
---
|
||||
|
||||
*Generated by Skill Seeker's unified multi-source scraper*
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,92 @@
|
||||
# Conflict Report
|
||||
|
||||
Found **168** conflicts between sources.
|
||||
|
||||
## Severity Breakdown
|
||||
|
||||
- 🔴 **High**: 0 (action required)
|
||||
- 🟡 **Medium**: 168 (review recommended)
|
||||
- 🟢 **Low**: 0 (informational)
|
||||
|
||||
## 🟡 Medium Severity
|
||||
|
||||
### Page
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/useSuspenseQuery.test.tsx) but not found in documentation
|
||||
|
||||
### Thrower
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/HydrationBoundary.test.tsx) but not found in documentation
|
||||
|
||||
### Page1
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/QueryClientProvider.test.tsx) but not found in documentation
|
||||
|
||||
### Page2
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/useSuspenseQueries.test.tsx) but not found in documentation
|
||||
|
||||
### Test
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/useQuery.test.tsx) but not found in documentation
|
||||
|
||||
### IsMutating
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/useMutationState.test.tsx) but not found in documentation
|
||||
|
||||
### Mutation
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/mutationOptions.test.tsx) but not found in documentation
|
||||
|
||||
### testFn
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/queryOptions.test-d.tsx) but not found in documentation
|
||||
|
||||
### PrintStateComponent
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/ssr-hydration.test.tsx) but not found in documentation
|
||||
|
||||
### SuccessComponent
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/ssr-hydration.test.tsx) but not found in documentation
|
||||
|
||||
### ErrorComponent
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/ssr-hydration.test.tsx) but not found in documentation
|
||||
|
||||
### ReactHydrate
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/ssr-hydration.test.tsx) but not found in documentation
|
||||
|
||||
### renderWithSuspense
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/suspense.test.tsx) but not found in documentation
|
||||
|
||||
### createTestQuery
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/suspense.test.tsx) but not found in documentation
|
||||
|
||||
### TestComponent
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/suspense.test.tsx) but not found in documentation
|
||||
|
||||
### List
|
||||
|
||||
API exists in code (examples/react/offline/src/App.tsx) but not found in documentation
|
||||
|
||||
### Inner
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/useInfiniteQuery.test.tsx) but not found in documentation
|
||||
|
||||
### Loading
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/useQuery.promise.test.tsx) but not found in documentation
|
||||
|
||||
### MyComponent
|
||||
|
||||
API exists in code (examples/react/nextjs-suspense-streaming/src/app/page.tsx) but not found in documentation
|
||||
|
||||
### genItems
|
||||
|
||||
API exists in code (packages/react-query/src/__tests__/useInfiniteQuery.test.tsx) but not found in documentation
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# Documentation
|
||||
|
||||
Reference from official documentation.
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
# Repository README
|
||||
|
||||
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=be2d8a11-9712-4c1d-9963-580b2d4fb133" />
|
||||
|
||||
<div align="center">
|
||||
<img src="./media/header_query.png" alt="TanStack Query" />
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div align="center">
|
||||
<a href="https://www.npmjs.com/package/@tanstack/query-core" target="\_parent">
|
||||
<img alt="" src="https://img.shields.io/npm/dm/@tanstack/query-core.svg" alt="npm downloads" />
|
||||
</a>
|
||||
<a href="https://github.com/TanStack/query/" target="\_parent">
|
||||
<img alt="" src="https://img.shields.io/github/stars/TanStack/query.svg?style=social&label=Star" alt="GitHub stars" />
|
||||
</a>
|
||||
<a href="https://bundlejs.com/?q=%40tanstack%2Freact-query&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
|
||||
<img alt="" src="https://deno.bundlejs.com/?q=@tanstack/react-query&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" alt="Bundle size" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
<a href="#badge">
|
||||
<img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="semantic-release">
|
||||
</a>
|
||||
<a href="https://bestofjs.org/projects/tanstack-query"><img src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%2Fquery%26since=daily" alt="Best of JS" /></a>
|
||||
<a href="https://twitter.com/tan_stack"><img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/></a>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
|
||||
### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
|
||||
|
||||
</div>
|
||||
|
||||
# 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
|
||||
|
||||
### <a href="https://tanstack.com/query">Read the docs →</b></a>
|
||||
|
||||
## Get Involved
|
||||
|
||||
- We welcome issues and pull requests!
|
||||
- Participate in [GitHub discussions](https://github.com/TanStack/query/discussions)
|
||||
- Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
|
||||
- See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions
|
||||
|
||||
## Partners
|
||||
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-CMcuvjEy.svg" height="40" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-DVMJ2jHi.svg" height="40" />
|
||||
<img src="https://tanstack.com/assets/coderabbit-light-DVMJ2jHi.svg" height="40" alt="CodeRabbit" />
|
||||
</picture>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://www.cloudflare.com?utm_source=tanstack">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-DQDB7UaL.svg" height="60" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-CPufaW0B.svg" height="60" />
|
||||
<img src="https://tanstack.com/assets/cloudflare-black-CPufaW0B.svg" height="60" alt="Cloudflare" />
|
||||
</picture>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div align="center">
|
||||
<img src="./media/partner_logo.svg" alt="Query & you?" height="65">
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<a href="mailto:partners@tanstack.com?subject=TanStack Query Partnership"><b>LET'S CHAT</b></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
## Explore the TanStack Ecosystem
|
||||
|
||||
- <a href="https://github.com/tanstack/config"><b>TanStack Config</b></a> – Tooling for JS/TS packages
|
||||
- <a href="https://github.com/tanstack/db"><b>TanStack DB</b></a> – Reactive sync client store
|
||||
- <a href="https://github.com/tanstack/devtools"><b>TanStack DevTools</b></a> – Unified devtools panel
|
||||
- <a href="https://github.com/tanstack/form"><b>TanStack Form</b></a> – Type‑safe form state
|
||||
- <a href="https://github.com/tanstack/pacer"><b>TanStack Pacer</b></a> – Debouncing, throttling, batching <br/>
|
||||
- <a href="https://github.com/tanstack/query"><b>TanStack Query</b></a> – Async state & caching
|
||||
- <a href="https://github.com/tanstack/ranger"><b>TanStack Ranger</b></a> – Range & slider primitives
|
||||
- <a href="https://github.com/tanstack/router"><b>TanStack Router</b></a> – Type‑safe routing, caching & URL state
|
||||
- <a href="https://github.com/tanstack/router"><b>TanStack Start</b></a> – Full‑stack SSR & streaming
|
||||
- <a href="https://github.com/tanstack/store"><b>TanStack Store</b></a> – Reactive data store
|
||||
- <a href="https://github.com/tanstack/table"><b>TanStack Table</b></a> – Headless datagrids
|
||||
- <a href="https://github.com/tanstack/virtual"><b>TanStack Virtual</b></a> – Virtualized rendering
|
||||
|
||||
… and more at <a href="https://tanstack.com"><b>TanStack.com »</b></a>
|
||||
|
||||
<!-- Use the force, Luke -->
|
||||
@@ -0,0 +1,108 @@
|
||||
# GitHub Issues
|
||||
|
||||
31 recent issues.
|
||||
|
||||
## #9776: `no-unstable-deps` eslint rule has false positives
|
||||
|
||||
**State**: open
|
||||
**Labels**: package: eslint-plugin-query
|
||||
**URL**: https://github.com/TanStack/query/issues/9776
|
||||
|
||||
## #5341: Mutations can not be started from an effect in Reacts StrictMode
|
||||
|
||||
**State**: closed
|
||||
**Labels**: wontfix, has workaround
|
||||
**URL**: https://github.com/TanStack/query/issues/5341
|
||||
|
||||
## #9826: useMutation has compatibility issue with <StrictMode>
|
||||
|
||||
**State**: closed
|
||||
**URL**: https://github.com/TanStack/query/issues/9826
|
||||
|
||||
## #9825: useMutationState does not propagate generics into select callback (type inference lost)
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9825
|
||||
|
||||
## #7814: Dependency Dashboard
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/7814
|
||||
|
||||
## #9824: [svelte] Why can't I bind to a `createQuery` result?
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9824
|
||||
|
||||
## #9798: A call to fetchQuery is cancelled when React useQuery is unmounted
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9798
|
||||
|
||||
## #9744: Angular docs: useIsFetching not converted to injectIsFetching in background-fetching-indicators guide
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9744
|
||||
|
||||
## #9818: Accessibility issues in devtools
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9818
|
||||
|
||||
## #9654: Solid Query docs: Code examples with `useSuspenseQuery` that don't exist
|
||||
|
||||
**State**: open
|
||||
**Labels**: documentation, help wanted
|
||||
**URL**: https://github.com/TanStack/query/issues/9654
|
||||
|
||||
## #9726: Inconsistent `select` behaviour for non-enumerable / symbol properties.
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9726
|
||||
|
||||
## #9796: No QueryClient set, use QueryClientProvider to set one
|
||||
|
||||
**State**: closed
|
||||
**URL**: https://github.com/TanStack/query/issues/9796
|
||||
|
||||
## #1980: refetch of useQuery isn't working correctly.
|
||||
|
||||
**State**: closed
|
||||
**URL**: https://github.com/TanStack/query/issues/1980
|
||||
|
||||
## #9782: Vue example has a reactivity problem
|
||||
|
||||
**State**: closed
|
||||
**URL**: https://github.com/TanStack/query/issues/9782
|
||||
|
||||
## #9783: Server Side Rendering avoid retry with dehydrated error not properly working
|
||||
|
||||
**State**: closed
|
||||
**URL**: https://github.com/TanStack/query/issues/9783
|
||||
|
||||
## #9642: Race condition causing hydration error when streaming with server components
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9642
|
||||
|
||||
## #9805: Cannot force a refetch / invalidate for queries that use `persister` before it is loaded from store.
|
||||
|
||||
**State**: closed
|
||||
**URL**: https://github.com/TanStack/query/issues/9805
|
||||
|
||||
## #4750: [vue-query]An error occurred when attempting to modify the data returned by useQuery
|
||||
|
||||
**State**: closed
|
||||
**Labels**: needs-info, package: vue-query
|
||||
**URL**: https://github.com/TanStack/query/issues/4750
|
||||
|
||||
## #9775: Performance: dehydrate() + persistence triggered on every cache update — severe blocking with large cache
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9775
|
||||
|
||||
## #9789: [Vue Query] queryOption type inference broken when using computed queryOption with `select` option
|
||||
|
||||
**State**: open
|
||||
**URL**: https://github.com/TanStack/query/issues/9789
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
# Releases
|
||||
|
||||
## @tanstack/angular-query-experimental@5.90.7: @tanstack/angular-query-experimental@5.90.7
|
||||
|
||||
**Published**: 2025-10-23
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Make `injectIsMutating` signal read-only to prevent external modifications to the internal state ([#9801](https://github.com/TanStack/query/pull/9801))
|
||||
|
||||
|
||||
## @tanstack/angular-query-experimental@5.90.6: @tanstack/angular-query-experimental@5.90.6
|
||||
|
||||
**Published**: 2025-10-22
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Rename `DeveloperToolsFeature` to `DevtoolsFeature` for consistency with internal naming conventions and ecosystem ([#9794](https://github.com/TanStack/query/pull/9794))
|
||||
|
||||
|
||||
## @tanstack/vue-query-devtools@5.91.0: @tanstack/vue-query-devtools@5.91.0
|
||||
|
||||
**Published**: 2025-10-21
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- feat(vue-query-devtools): Add embedded panel mode ([#9790](https://github.com/TanStack/query/pull/9790))
|
||||
|
||||
|
||||
## v4.42.0: None
|
||||
|
||||
**Published**: 2025-10-16
|
||||
|
||||
Version 4.42.0 - 10/16/25, 4:16 PM
|
||||
|
||||
## Changes
|
||||
|
||||
### Feat
|
||||
|
||||
- react-query: add react@19 as peerDeps (#9310) (06b6fb9) by @gwansikk
|
||||
|
||||
## Packages
|
||||
|
||||
- @tanstack/react-query@4.42.0
|
||||
- @tanstack/react-query-devtools@4.42.0
|
||||
- @tanstack/react-query-persist-client@4.42.0
|
||||
|
||||
## @tanstack/vue-query@5.90.5: @tanstack/vue-query@5.90.5
|
||||
|
||||
**Published**: 2025-10-16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies \[[`e42ddfe`](https://github.com/TanStack/query/commit/e42ddfe919f34f847ca101aeef162c69845f9a1e)]:
|
||||
- @tanstack/query-core@5.90.5
|
||||
|
||||
|
||||
## @tanstack/vue-query@5.90.4: @tanstack/vue-query@5.90.4
|
||||
|
||||
**Published**: 2025-10-16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies \[[`20ef922`](https://github.com/TanStack/query/commit/20ef922a0a7c3aee00150bf69123c338b0922922)]:
|
||||
- @tanstack/query-core@5.90.4
|
||||
|
||||
|
||||
## @tanstack/svelte-query@6.0.3: @tanstack/svelte-query@6.0.3
|
||||
|
||||
**Published**: 2025-10-16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies \[[`e42ddfe`](https://github.com/TanStack/query/commit/e42ddfe919f34f847ca101aeef162c69845f9a1e)]:
|
||||
- @tanstack/query-core@5.90.5
|
||||
|
||||
|
||||
## @tanstack/svelte-query@6.0.2: @tanstack/svelte-query@6.0.2
|
||||
|
||||
**Published**: 2025-10-16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies \[[`20ef922`](https://github.com/TanStack/query/commit/20ef922a0a7c3aee00150bf69123c338b0922922)]:
|
||||
- @tanstack/query-core@5.90.4
|
||||
|
||||
|
||||
## @tanstack/svelte-query-persist-client@6.0.5: @tanstack/svelte-query-persist-client@6.0.5
|
||||
|
||||
**Published**: 2025-10-16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies \[]:
|
||||
- @tanstack/query-persist-client-core@5.91.4
|
||||
- @tanstack/svelte-query@6.0.3
|
||||
|
||||
|
||||
## @tanstack/svelte-query-persist-client@6.0.4: @tanstack/svelte-query-persist-client@6.0.4
|
||||
|
||||
**Published**: 2025-10-16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies \[]:
|
||||
- @tanstack/query-persist-client-core@5.91.3
|
||||
- @tanstack/svelte-query@6.0.2
|
||||
|
||||
|
||||
Reference in new issue
Block a user