vani-async-client-only

Use async components, fallbacks, and client-only islands

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "vani-async-client-only" with this command: npx skills add itsjavi/vani/itsjavi-vani-vani-async-client-only

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

  1. Define a component that returns a Promise of a render function.
  2. Provide a fallback render function for DOM mode while async work runs.
  3. Use clientOnly: true to skip SSR for a component and render it on the client.
  4. 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)
  • clientOnly - whether to mark the component as client-only (defaults to false)

Examples

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.

Output

Example output:

Created: src/async-card.ts
Notes: Fallback renders in DOM mode; SSR awaits async components.

Present Results to User

Clarify when the fallback appears, how client-only rendering behaves, and list file changes.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

vani-forms-inputs

No summary provided by upstream source.

Repository SourceNeeds Review
General

vani-spa-setup

No summary provided by upstream source.

Repository SourceNeeds Review
General

vani-spa-app

No summary provided by upstream source.

Repository SourceNeeds Review
General

vani-scheduling

No summary provided by upstream source.

Repository SourceNeeds Review