·data-fetching
{}

data-fetching

qingqishi/shiqingqi.com

使用 fetch API、TanStack Query、useSuspenseQuery、apiRouteWrapper 和 apiRequestWrapper 的服務器/客戶端組件的數據獲取模式。在實現數據加載、API 調用、服務器函數、查詢、突變、API 路由或用戶提及 TanStack Query、useSuspenseQuery、apiRouteWrapper、apiRequestWrapper、tmdb-server-functions 或數據獲取時使用。

3安裝·0熱度·@qingqishi

安裝

$npx skills add https://github.com/qingqishi/shiqingqi.com --skill data-fetching

SKILL.md

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

Use await directly in server components. Call TMDB server functions from @/utils/tmdb-server-functions.

Client components use TanStack Query to call API routes, which wrap server functions.

使用 fetch API、TanStack Query、useSuspenseQuery、apiRouteWrapper 和 apiRequestWrapper 的服務器/客戶端組件的數據獲取模式。在實現數據加載、API 調用、服務器函數、查詢、突變、API 路由或用戶提及 TanStack Query、useSuspenseQuery、apiRouteWrapper、apiRequestWrapper、tmdb-server-functions 或數據獲取時使用。 來源:qingqishi/shiqingqi.com。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/qingqishi/shiqingqi.com --skill data-fetching
分類
{}資料分析
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 data-fetching?

使用 fetch API、TanStack Query、useSuspenseQuery、apiRouteWrapper 和 apiRequestWrapper 的服務器/客戶端組件的數據獲取模式。在實現數據加載、API 調用、服務器函數、查詢、突變、API 路由或用戶提及 TanStack Query、useSuspenseQuery、apiRouteWrapper、apiRequestWrapper、tmdb-server-functions 或數據獲取時使用。 來源:qingqishi/shiqingqi.com。

如何安裝 data-fetching?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/qingqishi/shiqingqi.com --skill data-fetching 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/qingqishi/shiqingqi.com