This covers Pinia Colada, Vue's smart data fetching layer that handles query caching, background refreshes, and optimistic updates without the boilerplate. You'll want it anytime you're working with async data in Vue, especially if you're tired of manually coordinating loading states across components. The big thing to know: it splits status into two refs (data state and async operation state), which can trip you up initially but makes sense once you're handling concurrent requests. The skill includes breaking changes across versions, so it's handy for debugging type errors or understanding why `isFetching` became `isLoading`. Use `defineQuery()` for shared state and lean on `refresh()` over `refetch()` unless you specifically need to bypass the cache.

skills.sh installs
142
GitHub stars
165
last updated
Jun 3, 2026

Install

$ npx -y skills add harlan-zw/vue-ecosystem-skills --skill pinia-colada-skilld --agent claude-code

Installs into .claude/skills of the current project.

Files

@pinia/colada 1.4.5

The smart data fetching layer for Vue.js, built on Pinia. Queries read and cache data (useQuery), mutations write data (useMutation), everything lives in Pinia stores (useQueryCache, useMutationCache).

  • Docs: https://pinia-colada.esm.dev
  • API types: dist/index.d.mts in the prepared package source
  • Runtime exports: dist/index.mjs:1487
  • Peers: vue ^3.5.41, pinia ^2.2.6 || ^3.0.0 || ^4.0.2 (pinia 4 allowed since 1.4.1, package.json:91-94)
  • Bundled codemods: codemods/rules/*.yaml in the package

Setup

npm install pinia @pinia/colada
import { createPinia } from 'pinia'
import { PiniaColada } from '@pinia/colada'

const app = createApp(App)
app.use(createPinia())
// install after pinia; the options object is required for correct typing
app.use(PiniaColada, {
  queryOptions: { staleTime: 60_000 },
  plugins: [],
})

Global options go under queryOptions / mutationOptions (dist/index.d.mts:1601-1618).

Mental model

Sponsors

Details

Repository
github.com/harlan-zw/vue-ecosystem-skills
Category
Frontend Development
First seen
Jun 3, 2026

More from harlan-zw/vue-ecosystem-skills

All 10
1spences10 avatarlayerchart-svelte5spences10/svelte-skills-kitLayerChart Svelte 5 patterns. Use for chart components with tooltip snippets, Chart context access, and all Svelte 5 snippet patterns for tooltips, gradients, h129skills.sh installs
2harlan-zw avatarvueuse-core-skilldharlan-zw/vue-ecosystem-skillsvueuse core skilld125skills.sh installs
3millionco avatarremotion-best-practicesmillionco/react-doctorBest practices for Remotion - Video creation in React119skills.sh installs
4angular avatarPR Reviewangular/angularGuidelines and tools for reviewing pull requests in the Angular repository.0skills.sh installs
5facebook avatarfixfacebook/reactThe fix skill automates code quality checks for React development by running formatting and linting tools to identify and resolve issues...0skills.sh installs
6marcglasberg avatarasyncredux-persistencemarcglasberg/async_reduxImplement local state persistence using Persistor. Covers creating a custom Persistor class, implementing `readState()`, `persistDifference()`, `deleteState()`,0skills.sh installs