Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By secondskyv3.12.0MITIn 1 marketplace
Adds cached, reactive data fetching to Vue and Nuxt apps with useQuery and useMutation, including invalidation, optimistic updates and SSR setup. Covers migrating from TanStack Vue Query.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
pinia, data-fetching, async-state, query-cache, ssr, tanstack-query-migration, pinia-colada, colada ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Status: Production Ready ✅ Last Updated: 2025-11-11 Production Tested: Deployed in multiple Vue 3 and Nuxt applications with SSR
Claude Code automatically discovers this skill when you mention:
This skill provides comprehensive guidance for implementing Pinia Colada, the smart data fetching layer for Vue.js and Nuxt, built on top of Pinia. Covers setup, queries, mutations, optimistic updates, SSR, caching strategies, and migration from TanStack Vue Query.
✅ Complete plugin setup for Vue 3 and Nuxt projects with optimal defaults ✅ Reusable query composables with proper TypeScript typing ✅ Mutation patterns with automatic query invalidation ✅ Optimistic update implementations with rollback on error ✅ Query key strategies and hierarchical invalidation ✅ Paginated queries with placeholderData for smooth UX ✅ SSR configuration and Nuxt module integration ✅ Query cache management and prefetching strategies ✅ Custom plugin development for auto-refetch behavior ✅ Migration guide from TanStack Vue Query ✅ Prevents 12 common documented errors ✅ Production-ready patterns with TypeScript support
| Issue | Why It Happens | Source | How Skill Fixes It |
|---|---|---|---|
| Query not refetching after mutation | Forgot invalidateQueries in mutation | #315 | Always use invalidateQueries in onSettled hook |
| Race condition with optimistic updates | Didn't cancel in-flight queries | #53 | Call cancelQueries before optimistic update in onMutate |
| SSR hydration mismatch | Client refetches on mount with different data | Nuxt docs | Set refetchOnMount: false for SSR queries |
| Query key not reactive | Static array instead of function | Common pattern | Use function: key: () => ['todos', id.value] |
| Modal closes before data refreshes | invalidateQueries not awaited | Common UX issue | Always await invalidation in onSettled |
| Cannot read property of undefined | Using data.value before defined | Runtime error | Use optional chaining: data.value?.todos ?? [] |
| Query invalidation doesn't work | Key mismatch between query and invalidation | Common mistake | Match exact key structure or use prefix |
| Memory leak from unused queries | gcTime set too high | Performance issue | Use reasonable gcTime: 5 * 60 * 1000 (5 min) |
| Mutation error not handled | Using mutateAsync without try/catch | Unhandled rejection | Wrap mutateAsync in try/catch |
| Nuxt module order wrong | @pinia/colada-nuxt before @pinia/nuxt | Nuxt docs | Always put @pinia/nuxt first in modules array |
| Optimistic update lost on error | No rollback logic in onError | Common bug | Return context from onMutate, rollback in onError |
| Infinite refetch loop | Query key object identity changes every render | Performance issue | Use stable ref: const filters = ref({...}) |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub secondsky/claude-skills --plugin pinia-coladaPlugins from other owners that cover similar ground