data-fetching

Installation
SKILL.md

Data Fetching Architecture

Overview

This project uses a structured data fetching pattern that differs between server and client components.

Core Principles

  1. Server components call server functions directly
  2. Client components use TanStack Query to fetch from API routes
  3. API routes wrap server functions using apiRouteWrapper
  4. Mutations from client components call server functions directly
  5. TMDB API uses auto-generated server functions from tmdb-server-functions.ts

Server Components

Server components can directly await server functions.

Related skills

More from qingqishi/shiqingqi.com

Installs
7
GitHub Stars
4
First Seen
Jan 25, 2026