SKILL

expo-data-fetching

Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, React Query, SWR, error handling, caching, offline support, loading/empty/error screen states, and Expo Router data loaders (`useLoaderData`).

Target: Mobile development. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Expo Networking
  • References
  • When to Use
  • Preferences
  • Every Screen Has Four States
  • Common Issues & Solutions
  • 1. Basic Fetch Usage
  • 2. React Query (TanStack Query)

You MUST use this skill for ANY networking work including API requests, data fetching, caching, or network debugging. Consult these resources as needed: Use this skill when: Implementing API requests Setting up data fetching (React Query, SWR) Using Expo Router data loaders (useLoaderData, web SDK 55+) Debugging network failures Implementing caching strategies Handling offline scenarios Authentication/token management Configuring API URLs and environment variables Avoid axios, prefer expo/fetch Design loading, error, empty, and content for screens that load data. These can overlap: a refresh error should coexist with cached content. Loading ≠ empty. Empty means resolved with zero items, not missing data. Handle initial loading, failure, and hydration before checking list length. In TanStack Query v5, isLoading means the first fetch is running; a disabled or offline-paused query can have no data without being loading. Show the prerequisite or offline state in that case. Empty is a designed state, not a blank list. Use ListEmptyComponent on FlatList/FlashList: explain why it is empty and offer the relevant next action. "No items yet" can offer Create; "No results" should offer changi

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
expo/skills
Source file
plugins/expo/skills/expo-data-fetching/SKILL.md
Fixed revision
a9e5bd3fa00b4e61f632e43f85da73aee1942582
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: Expo Skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:42.054Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.