Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Create Adaptable Composable

Plugin Verifiziert Aktiv
Teil von:Vue Skills

Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.

Zweck

To enable developers to create more robust and reusable Vue 3 composables by standardizing flexible input handling patterns.

Funktionen

  • Generate adaptable Vue composables
  • Normalize MaybeRef/MaybeRefOrGetter inputs
  • Utilize toValue()/toRef() for reactive effects
  • Improve composable reusability and predictability

Anwendungsfälle

  • When creating reusable Vue 3 composables that need to accept reactive or non-reactive inputs.
  • When aiming for predictable behavior by normalizing inputs within reactive effects.
  • When developing libraries or components that require flexible input patterns.

Nicht-Ziele

  • Creating full Vue components or applications.
  • Providing a general-purpose Vue code generator.
  • Handling runtime configuration or application state management directly.

Installation

Zuerst Marketplace hinzufügen

/plugin marketplace add hyf0/vue-skills
/plugin install create-adaptable-composable@vue-skills

Qualitätspunktzahl

Verifiziert
98 /100
Analysiert about 19 hours ago

Vertrauenssignale

Letzter Commitabout 2 months ago
Sterne2.4k
LizenzMIT
Status
Quellcode ansehen