native-data-fetching

Standardize API requests, error handling, and caching across web and native apps.

16|Updated Jun 6, 2026
One-click install
npx skills add https://github.com/Insik-Han/han-monorepo-template --skill native-data-fetching-insik-han
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: native-data-fetching
Source: https://github.com/Insik-Han/han-monorepo-template/tree/main/.agents/skills/native-data-fetching
Command: npx skills add https://github.com/Insik-Han/han-monorepo-template --skill native-data-fetching-insik-han

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Data fetching and API interaction across web and native apps is error-prone and inconsistent. This skill standardizes how requests are made, error handling, caching, and offline support.

Core Features & Use Cases

  • Unified networking strategies across Expo Router, React Query, SWR.
  • Robust error handling, retry logic, and token management for secure APIs.
  • Offline support and caching via React Query and fetch wrappers.

Quick Start

Set up a robust network layer: implement fetch-based requests with error handling, then add React Query for data fetching, caching, and offline support.

Frequently Asked Questions about native-data-fetching

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

FAQPage Schema
How do I standardize data fetching and API error handling across web and native apps?

To standardize data fetching and API error handling across web and native apps, implement unified fetch wrappers with retry logic and token management. This ensures consistent network requests, secure authentication flows, and robust error handling across Expo Router, React Query, or SWR.

What is the best way to handle offline support and caching with React Query?

The best way to handle offline support and caching with React Query is to combine fetch-based wrappers with React Query's built-in caching mechanisms. This setup allows your application to securely manage data fetching, cache network responses, and maintain functionality during network interruptions.

Can I use SWR and React Query together in an Expo Router project?

Yes, you can apply unified networking strategies across Expo Router, React Query, and SWR. The skill provides fetch wrappers and environment-configured API URLs that integrate with these libraries to manage data fetching, caching, and token management for secure APIs.

How do I set up a robust network layer with retry logic and token management?

To set up a robust network layer with retry logic and token management, implement fetch-based requests with comprehensive error handling first. Then, add React Query or SWR for advanced data fetching, caching, and offline support to complete the front-end networking workflow.

Why do my network requests fail inconsistently across different environments?

Network requests fail inconsistently when API URLs are not properly configured for different environments. By using environment-configured API URLs and implementing unified fetch wrappers with standardized error handling, you can resolve these inconsistencies and ensure reliable data fetching.