start-server-functions
Use when creating type-safe RPC server logic with createServerFn — validators, handlers, FormData, redirects. Do NOT use for raw HTTP endpoints or middleware chains.
原文 · 译文尚未补齐适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- TanStack Start Server Functions
- Agent Workflow (MANDATORY)
- Critical Rules (read first)
- Overview
- Architecture
- Reference Guide
- Concepts
- Templates
Covers createServerFn, TanStack Start's same-origin type-safe RPC mechanism: GET/POST methods, .validator() (Zod or a plain function), .handler(), the useServerFn hook, FormData input, Response output, strict serialization, throwing redirect()/notFound(), server context utilities, and CSRF protection. Server functions run only on the server but are callable from loaders, components, hooks, and other server functions. Targets @tanstack/react-start v1.169.5. Critical rules: a server function is an independent HTTP endpoint reachable directly, so a route's beforeLoad redirect protects the UI only — auth must live inside the handler or its middleware for every function touching private data; never use Next.js/Remix patterns ("use server", getServerSideProps, Remix loader/action); loaders are isomorphic, so DB/secrets/filesystem access belongs in a server function, never a loader; useServerFn is mandatory when a function throws redirect() or notFound() (optional otherwise); and strict serialization is on by default (FormData allowed as POST input, Response as output). Includes templates for a full CRUD module and for FormData submissions with Zod validation. Do NOT use this skill for ra
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- Fusengine/claude-plugins
- 源文件
- plugins/tanstack-start-expert/skills/start-server-functions/SKILL.md
- 固定版本
- b9f82810cf3b5e3c4350332ac3ef618d60163cc0
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:Fusengine/claude-plugins · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T11:01:45.997Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。