본문으로 건너뛰기
이 콘텐츠는 아직 사용자의 언어로 제공되지 않아 영어로 표시됩니다.

Create Adaptable Composable

Plugin 확인됨
95

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.

AI 요약

This skill details how to create reusable Vue composables that can accept both reactive and non-reactive inputs using Vue's `MaybeRef` and `MaybeRefOrGetter` types, normalized with `toValue()` and `toRef()`. It includes type definitions and code examples for implementing this pattern.

Maintenance

  • warning:Commit recencyNo commits found in the last 90 days (last commit date is unavailable).

설치

먼저 마켓플레이스를 추가하세요

/plugin marketplace add vuejs-ai/skills
/plugin install create-adaptable-composable@vue-skills
about 1 month ago
2.4k stars
MIT
2 days ago에 업데이트됨
소스 코드 보기