tanstack-query
Build TanStack Query v5 React Workflows
TanStack Query v5 changes can break data fetching, mutations, and SSR behavior. This skill provides focused setup, migration, debugging, and template guidance for React teams.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "tanstack-query" from https://skillstore.io/skills/jezweb-tanstack-query.md and its manifest at https://skillstore.io/api/skills/jezweb-tanstack-query/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "tanstack-query". A developer asks how to add TanStack Query to a React app.
Expected outcome:
A setup plan with package guidance, provider placement, QueryClient defaults, DevTools notes, and validation steps.
Using "tanstack-query". A maintainer shares v4 code with cacheTime and loading status checks.
Expected outcome:
A migration checklist that maps old options to v5 names and explains changed loading semantics.
Using "tanstack-query". A team reports stale data after a mutation.
Expected outcome:
A debugging path covering query keys, invalidation scope, optimistic updates, and DevTools inspection points.
Security Audit
Medium RiskMost static findings are false positives caused by Markdown backticks, TypeScript template literals, local API examples, and React identifiers. Confirmed issues are low-risk external demo API calls in copy-ready templates, plus medium-risk semantic concerns around production DevTools exposure and visible stack traces.
Confirmed security concerns (2)
Capability review items (28)
These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.
Risk Factors
🌐 Network access (64)
⚙️ External commands (212)
⚡ Contains scripts (1)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/jezweb-tanstack-query/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/jezweb-tanstack-query?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/jezweb-tanstack-query?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/jezweb-tanstack-query/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/jezweb-tanstack-query.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA · BibTeX · CFF)
APA citation
jezweb. (2026). tanstack-query security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/jezweb-tanstack-query/audits/4BibTeX citation
@techreport{jezweb-jezweb-tanstack-query-2026,
author = {jezweb},
title = {tanstack-query security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/jezweb-tanstack-query/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "tanstack-query security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "jezweb"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/jezweb-tanstack-query/audits/4"
identifiers:
- type: other
value: "skillstore:jezweb-tanstack-query:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Set up a React app
Create a QueryClient, wrap the app provider, configure cache defaults, and add DevTools safely.
Migrate from v4 to v5
Replace removed callbacks, update option names, fix status flags, and resolve TypeScript migration errors.
Debug server state behavior
Investigate refetching, invalidation, optimistic updates, pagination, suspense, and hydration problems.
Try These Prompts
Help me add TanStack Query v5 to a React TypeScript app. Include provider setup, sensible defaults, and DevTools guidance.
Design TanStack Query v5 hooks for this resource. Include query keys, queryOptions, staleTime, error handling, and loading states.
Review this React Query v4 usage and convert it to TanStack Query v5. Explain each breaking change and safer replacement.
Analyze this TanStack Query v5 caching, suspense, or hydration problem. Identify likely causes, tests, and minimal code changes.
Best Practices
- Use stable query keys and central query option factories for repeated resources.
- Prefer explicit invalidation and optimistic rollback paths for mutations.
- Review DevTools, stack traces, and demo endpoints before shipping production code.
Avoid
- Do not use removed v4 callbacks on useQuery in new v5 code.
- Do not expose production DevTools or cache contents without authentication.
- Do not copy demo API endpoints into applications that handle real user data.