vani-async-client-only
Installation
SKILL.md
Async Components and Client-Only Islands
Instructions for async components with fallbacks and client-only rendering.
When to Use
Use this when a component needs async setup or when a section should render only on the client.
Steps
- Define a component that returns a Promise of a render function.
- Provide a
fallbackrender function for DOM mode while async work runs. - Use
clientOnly: trueto skip SSR for a component and render it on the client. - Keep explicit updates for any local state changes after load.
Arguments
- componentName - async component name (defaults to
AsyncCard) - includeFallback - whether to include a fallback (defaults to
true)
Related skills
More from itsjavi/vani
vani-spa-setup
Create a minimal Vani SPA root with explicit updates
8vani-jsx-setup
Configure and use JSX with Vani while keeping runtime behavior explicit
8vani-scheduling
Schedule explicit updates with microtasks and transitions
8vani-spa-app
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples.
8vani-ssr-hydration
Implement SSR, hydration, and selective activation with Vani
8vani-incremental-mount
Mount Vani components inside existing apps or DOM islands
8