nuxt-data

Solid

Nuxt 5 data management with useFetch, useAsyncData, useState, and Pinia. Use when creating composables, fetching data, managing state, or debugging reactive/SSR data issues.

Web & Frontend 168 stars 27 forks Updated 4 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Nuxt 5 Data Management Composables, data fetching, and state management patterns for Nuxt 5 applications. **Use when**: creating custom composables, fetching data with useFetch or useAsyncData, managing global state with useState, integrating Pinia, debugging reactive data issues, or implementing SSR-safe state patterns. ## Quick Reference ### Data Fetching Methods | Method | Use Case | SSR | Caching | Reactive | |--------|----------|-----|---------|----------| | `useFetch` | Simple API calls | Yes | Yes | Yes | | `useAsyncData` | Custom async logic | Yes | Yes | Yes | | `$fetch` | Client-side only, events | No | No | No | ## When to Load References **Load `references/composables.md` when:** - Writing custom composables with complex state - Debugging state management issues or memory leaks - Implementing SSR-safe patterns with browser APIs - Building authentication or complex state composables **Load `references/data-fetching.md` when:** - Implementing API data fetching with reactive parameters - Troubleshooting shallow vs deep reactivity issues - Debugging data not refreshing when params change - Implementing pagination, infinite scroll, or search ## Composables ### useState - The Foundation `useState` creates SSR-safe, shared reactive state that persists across component instances. ```typescript // composables/useCounter.ts export const useCounter = () => { const count = useState('counter', () => 0) const increment = () => count.value++ const decrement ...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
7 months ago
Last Updated
4 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category