create-adaptable-composable by vuejs-ai

create-adaptable-composable

vuejs-ai

2.2k1203 months ago

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.

>_
Quick Install
npxskills add vuejs-ai/skills--skill create-adaptable-composable
Instructions

Loading…

Tags & Topics
Requires Vue 3 (or above) or Nuxt 3 (or above) project