nuxt-data

Guide Nuxt 4 data fetching with useFetch, useAsyncData, and Pinia.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/asonnleitner/filipsbarbershop --skill nuxt-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt-data
Source: https://github.com/asonnleitner/filipsbarbershop/tree/main/.claude/skills/nuxt-data
Command: npx skills add https://github.com/asonnleitner/filipsbarbershop --skill nuxt-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies and clarifies data fetching, state management, and composable creation within Nuxt 4 applications, ensuring efficient and maintainable code.

Core Features & Use Cases

  • Data Fetching: Efficiently fetch data using useFetch and useAsyncData, with support for reactive parameters, transformations, and error handling.
  • State Management: Manage application state effectively with useState for shared data and seamless integration with Pinia.
  • Composable Development: Learn best practices for creating reusable, SSR-safe composables.
  • Use Case: When building a dashboard that requires fetching user data, posts, and statistics simultaneously, this Skill provides the patterns to do so efficiently and manage the combined state.

Quick Start

Use the nuxt-data skill to fetch user data from the '/api/users' endpoint.

Frequently Asked Questions about nuxt-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch data using useFetch and useAsyncData in Nuxt 4?

State management in Nuxt 4 uses useState for shared application data and integrates with Pinia. This combination provides seamless state handling across components while maintaining SSR-safe practices for scalable applications.

How do I create SSR-safe composables in Nuxt?

SSR-safe composables in Nuxt require following best practices for reusable logic during server-side rendering. This Skill provides patterns to ensure data fetching and state management avoid hydration mismatches and maintain consistency across server and client.

Does nuxt-data provide patterns for handling multiple simultaneous data fetches?

Nuxt-data provides patterns for handling multiple simultaneous fetches efficiently, such as fetching user data, posts, and statistics together. It uses composable patterns to manage combined state and ensure scalable Nuxt applications.

What is the best way to handle polling and debouncing with Nuxt data fetching?

Nuxt data fetching supports advanced techniques like polling and debouncing through composable patterns. Using useFetch and useAsyncData, you can implement these mechanisms to control data refresh rates and optimize network requests.

Why should I use useState instead of Pinia for Nuxt state management?

useState is used for simple shared application state, while Pinia integration handles complex state logic. Nuxt-data guides when to use each approach, ensuring efficient and maintainable state management tailored to your application's scale.