tanstack
Implement React data, routes, or forms with TanStack. Covers Query, Router, and Form; excludes Start, DB, and unrelated state or routing libraries.
- License 许可
- MIT
- 所属仓库
- compozy/compozy
- 最近更新
- 2026-11-15
- Stars
- ★ 2.9k
- Forks
- 187
01 前言 Front Matter
- name
- tanstack
- description
- Implement React data, routes, or forms with TanStack. Covers Query, Router, and Form; excludes Start, DB, and unrelated state or routing libraries.
02 资源文件 11
- 参考文档references/form.md7.7 KB
- 参考文档references/query-caching.md4.3 KB
- 参考文档references/query-errors-performance.md4.1 KB
- 参考文档references/query-fetch-patterns.md7.4 KB
- 参考文档references/query-keys.md5.7 KB
- 参考文档references/query-mutations.md6.7 KB
- 参考文档references/query-ssr-offline.md7.6 KB
- 参考文档references/router-data-loading.md7.8 KB
- 参考文档references/router-search-nav.md6.9 KB
- 参考文档references/router-split-errors-context.md8.4 KB
- 参考文档references/router-type-and-org.md8.3 KB
03 SKILL.md 正文
TanStack
Read the reference matched by the API or behavior being changed. Load adjacent references only for concerns the change crosses; reuse relevant context already read.
Branches
| When you are… | Reference |
|---|---|
| Defining or changing query keys / factories | references/query-keys.md |
| Setting staleTime, gcTime, invalidation, placeholder/initial data | references/query-caching.md |
| Writing mutations, optimistic updates, or mutation state | references/query-mutations.md |
| Prefetching, parallel queries, infinite queries, or cancellation | references/query-fetch-patterns.md |
| SSR dehydrate/hydrate, offline networkMode, or query persistence | references/query-ssr-offline.md |
| Query error boundaries or select/performance | references/query-errors-performance.md |
Registering the router, from typing, virtual routes, or router defaults |
references/router-type-and-org.md |
| Route loaders, ensureQueryData, or parallel route loading | references/router-data-loading.md |
| Search params, Link/navigate, route masks, or preload | references/router-search-nav.md |
| Lazy routes, not-found, route context, or auth beforeLoad | references/router-split-errors-context.md |
| TanStack Form hooks, Zod validators, or field components | references/form.md |
Apply the technical rules relevant to the changed behavior.
Tripwires
Query — array keys that include every dependency; reconcile mutations through canonical keys: update from authoritative responses or invalidate when the owning read model requires a server reread; optimistic cache writes need rollback; never put non-serializable values in keys.
Router — register the router type; validate search with defaults (.catch()); use ensureQueryData in loaders when pairing with Query; throw redirect(...) not return.
Form — complete defaultValues for inference; Zod at form/field level; debounce async validators to fit endpoint cost and interaction needs; role="alert" on field errors; preventDefault on submit.
04 同仓库更多 Skills
security-review
Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit security", "OWASP review", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.
lesson-learned
Extract evidence-backed engineering lessons from recent changes or incidents. Use for requested reflection, lesson updates, or retiring an obsolete workflow rule.
compozy
Operate CompozyOS. Use when working with CompozyOS sessions, agents, native tools, skills, tasks, Loops, Goals, Terminal, desktops and windows, automation, extensions, or configuration. Don't use for unrelated projects.
remotion-upgrade
Upgrade Remotion, and related packages
remotion-studio
Preview a Remotion video
remotion-saas
Build an app with Remotion