data-fetching

Implement TanStack Query data fetching and state management for React applications.

11|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/BangDori/prowl --skill data-fetching-bangdori
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-fetching
Source: https://github.com/BangDori/prowl/tree/main/.agents/skills/data-fetching
Command: npx skills add https://github.com/BangDori/prowl --skill data-fetching-bangdori

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized and efficient pattern for fetching, caching, and updating data in a React application using TanStack Query, reducing boilerplate code and improving performance.

Core Features & Use Cases

  • Centralized Query Management: Organizes data fetching logic in dedicated queries/ and hooks/ directories.
  • Optimistic Updates: Implements immediate UI feedback for mutations before server confirmation.
  • Conditional Polling: Dynamically adjusts data refetching intervals based on application state.
  • Use Case: When updating user settings, the UI immediately reflects the change, and related data is refreshed automatically without a full page reload, ensuring a smooth user experience.

Quick Start

Use the data-fetching skill to fetch the list of jobs using the useLaunchdJobs hook.

Frequently Asked Questions about data-fetching

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

FAQPage Schema
How do I implement optimistic updates for mutations in a React application?

Optimistic updates provide immediate UI feedback by updating the local cache before server confirmation during data mutations. This Skill implements these patterns using TanStack Query to ensure smooth user experiences without full page reloads.

What is the best way to structure data fetching logic and state management in React?

The best way to structure data fetching logic is by centralizing it in dedicated queries and hooks directories. This Skill uses a hook-based architecture with TanStack Query to manage asynchronous operations and reduce boilerplate.

How does query invalidation work for synchronizing asynchronous data in React?

Query invalidation synchronizes asynchronous data by marking cached queries as stale and triggering automatic refetching. This Skill leverages query keys and invalidation strategies within TanStack Query to ensure efficient UI responsiveness.

Can I dynamically adjust polling intervals for data fetching based on application state?

Yes, you can dynamically adjust data fetching intervals through conditional polling. This Skill implements conditional polling to automatically refetch related data based on changing application state using React hooks.

Does TanStack Query work with a hook-based architecture for managing React state?

TanStack Query works seamlessly with a hook-based architecture to manage React state and asynchronous data operations. This Skill implements structured hooks to handle queries, mutations, and data synchronization efficiently.

Why should I use TanStack Query over standard hooks for data fetching in React?

You should use TanStack Query over standard hooks to reduce boilerplate code and improve performance. It provides built-in caching, structured query management, and automated invalidation strategies for complex data fetching operations.