tanstack-query

Fetch, cache, and update data with TanStack Query hooks.

Updated May 30, 2026
One-click install
npx skills add https://github.com/kaiomaced0/hackamarh --skill tanstack-query-kaiomaced0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-query
Source: https://github.com/kaiomaced0/hackamarh/tree/main/front-gestao/.agents/skills/tanstack-query
Command: npx skills add https://github.com/kaiomaced0/hackamarh --skill tanstack-query-kaiomaced0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/react-query, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines data fetching and state management in applications, reducing complexity and improving performance with TanStack Query.

Core Features & Use Cases

  • Data Fetching: Fetch, cache, and update data efficiently with useSuspenseQuery, useQuery, and mutations.
  • Cache Management: Leverage cache-first strategies and centralized API services.
  • API Service Patterns: Implement robust data fetching and manipulation workflows.
  • Use Case: Develop dynamic web applications that need to fetch, manipulate, and cache data from a backend service.

Quick Start

Start fetching data with the tanstack-query skill using useSuspenseQuery for optimal performance and user experience.

Frequently Asked Questions about tanstack-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage data fetching and cache state in React applications?

TanStack Query provides useSuspenseQuery and useQuery hooks to fetch, cache, and update data efficiently. It implements cache-first strategies and centralized API services to optimize data loading workflows.

What is the best way to handle API service integration and mutations?

The best way to handle API integration is by leveraging TanStack Query mutations alongside centralized API service patterns. This combination ensures robust data fetching, manipulation, and efficient cache management workflows.

Do I need React Query to implement cache-first strategies for backend data?

Yes, you need the @tanstack/react-query dependency to implement cache-first strategies. It provides the necessary hooks and API service integration tools to efficiently fetch, cache, and manipulate backend data.

When should I use useSuspenseQuery over standard data fetching hooks?

You should use useSuspenseQuery to achieve optimal performance and user experience during data fetching. It allows your dynamic web applications to efficiently fetch and cache data while maintaining cache-first strategies.

Can I use TanStack Query to streamline data fetching complexity in modern web apps?

Yes, TanStack Query streamlines data fetching and state management to reduce complexity. By using its hooks and centralized API services, you can efficiently fetch, manipulate, and cache data from backend services.