在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
$ git log --oneline --stat
stars:1,177
forks:110
updated:2026年2月22日 12:29
SKILL.md
General repo context and behavior guidelines
Skill: chat-context
General repo context and behavior guidelines
Documentation review and fix workflow for MDX files
Skill: react
Skill: trpc-patterns
| name | lazy-prefetch-pattern |
| description | Skill: lazy-prefetch-pattern |
Goal: start prefetchQuery() early on the server without awaiting, so it doesn't block SSR / Suspense, while still hydrating on the client.
trpc/query-client.ts:
dehydrate.shouldDehydrateQuery includes query.state.status === "pending".dehydrate.serializeData / hydrate.deserializeData use SuperJSON.In a Server Component (e.g. app/(chat)/layout.tsx):
getQueryClient() from @/trpc/server)void (no await):
void queryClient.prefetchQuery(trpc.foo.bar.queryOptions(...))HydrateClient/HydrationBoundary dehydrate the cache.Use await only for data you must have before rendering (everything else should be lazy-prefetched).