native-data-fetching

Implement and debug network requests, API calls, and data fetching in applications.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/tc9011/my-skills --skill native-data-fetching-tc9011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: native-data-fetching
Source: https://github.com/tc9011/my-skills/tree/main/skills/native-data-fetching
Command: npx skills add https://github.com/tc9011/my-skills --skill native-data-fetching-tc9011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the implementation and debugging of all network requests, API calls, and data fetching operations within your application.

Core Features & Use Cases

  • API Integration: Implement and manage any type of API request (GET, POST, etc.).
  • Data Fetching Libraries: Utilize and configure popular libraries like React Query and SWR for efficient data management.
  • Error Handling & Caching: Robustly handle network errors, implement caching strategies, and ensure offline support.
  • Use Case: When building a feature that displays user profiles fetched from an API, use this Skill to set up the fetch call, handle loading and error states with React Query, and ensure data is cached for a smooth user experience.

Quick Start

Use the native-data-fetching skill to implement a basic GET request to 'https://api.example.com/users'.

Frequently Asked Questions about native-data-fetching

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

FAQPage Schema
How do I implement data fetching with React Query and handle loading states?

Data fetching with React Query involves configuring hooks to manage API requests, automatically handling loading and error states while caching responses to ensure a smooth user experience across network conditions.

What's the best way to handle API errors and offline support in network requests?

Handling API errors and offline support requires implementing robust error handling logic within your fetch calls and utilizing caching strategies to store responses locally for when network connectivity is unavailable.

How do I configure environment variables for API endpoints in Expo Router?

Configuring environment variables for API endpoints in Expo Router involves defining endpoint variables in your environment files and referencing them during network requests to securely manage API base URLs.

Can I use the fetch API for authentication token handling in network requests?

Yes, the fetch API can be used for authentication token handling by intercepting or modifying request headers to include tokens, ensuring authorized access to protected API endpoints during data fetching.

When should I use SWR instead of basic HTTP requests for data fetching?

You should use SWR instead of basic HTTP requests when your application requires complex state management, advanced caching strategies, and automatic revalidation to maintain fresh data without manual fetching logic.