tanstack-query

- Introducing a new query/mutation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tanstack-query" with this command: npx skills add huynhsang2005/blog-tanstack/huynhsang2005-blog-tanstack-tanstack-query

TanStack Query Skill

When to use

  • Introducing a new query/mutation.

  • Debugging cache invalidation, stale data, or SSR hydration.

Workflow checklist

  • Design a stable query key (include stable identifiers; avoid objects unless serialized).

  • Co-locate query logic with the owning domain.

  • Ensure SSR/hydration correctness (use Router + Query SSR integration patterns).

  • Set cache semantics intentionally (staleTime/gcTime) and invalidate on writes.

  • Keep devtools disabled in production.

SSR troubleshooting

  • Identify which data must be available at SSR time vs client-only.

  • Ensure query keys and inputs match across SSR and client hydration.

  • Confirm provider wiring and dehydration/rehydration flow stays intact.

Tooling

  • Use TanStack MCP for Query APIs, SSR patterns, and cache guidance.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

framer-motion

No summary provided by upstream source.

Repository SourceNeeds Review
General

tanstack-form

No summary provided by upstream source.

Repository SourceNeeds Review
General

frontend-ui-ux

No summary provided by upstream source.

Repository SourceNeeds Review