lovstudio:install-tanstack-query
Installation
SKILL.md
install-tanstack-query — TanStack Query 初始化与重构
Use this skill to add TanStack Query to a project or refactor existing request state into a shared query/mutation layer.
When to Use
- The user asks to install or initialize TanStack Query / React Query.
- The project has repeated
useEffect + useState + fetch/invokerequest code. - The user wants all network-backed reads to share cache, refetch, invalidation, and loading/error behavior.
- A Tauri app uses many
invoke()reads that should be treated as server state. - The user mentions RTK Query but the project already uses, or prefers, TanStack Query.