一键导入
vani-async-client-only
Use async components, fallbacks, and client-only islands
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use async components, fallbacks, and client-only islands
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a tiny global store with explicit subscriptions
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples. Use when the user mentions Vani SPA app, src/spa-app, landing page/homepage, or landing examples.
Mount Vani components inside existing apps or DOM islands
Build scalable lists with keyed rows and per-item updates
Schedule explicit updates with microtasks and transitions
Create a minimal Vani SPA root with explicit updates
| name | vani-async-client-only |
| description | Use async components, fallbacks, and client-only islands |
Instructions for async components with fallbacks and client-only rendering.
Use this when a component needs async setup or when a section should render only on the client.
fallback render function for DOM mode while async work runs.clientOnly: true to skip SSR for a component and render it on the client.AsyncCard)true)false)Example 1 usage pattern:
Render an async card with a loading fallback, then resolve to content.
Example 2 usage pattern:
Render a client-only widget inside an SSR page using clientOnly: true.
Example output:
Created: src/async-card.ts
Notes: Fallback renders in DOM mode; SSR awaits async components.
Clarify when the fallback appears, how client-only rendering behaves, and list file changes.