inertia-vue-development

Implements Inertia.js v3 Vue pages, forms, navigation, and client-side data features.

Updated Sep 5, 2025
One-click install
npx skills add https://github.com/baubyte/website --skill inertia-vue-development-baubyte
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: inertia-vue-development
Source: https://github.com/baubyte/website/tree/main/.agents/skills/inertia-vue-development
Command: npx skills add https://github.com/baubyte/website --skill inertia-vue-development-baubyte

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @inertiajs/vue3.

What problem does it solve? Building Vue frontends on top of Laravel backends often means choosing between a full SPA with an API layer or losing SPA-like navigation. This Skill provides guidance for building Inertia.js v3 Vue applications, covering page components, forms, navigation, and modern v3 features without maintaining a separate API. ## Core Features & Use Cases - Page Components & Navigation: Create Vue pages in resources/js/Pages and navigate with <Link> or the router, including prefetching and programmatic visits. - Form Handling: Build forms with the <Form> component or the useForm composable, with error display, processing states, and automatic reset options. - Inertia v3 Features: Use deferred props, optimistic updates, instant visits, layout props via setLayoutProps, polling with usePoll, WhenVisible lazy loading, InfiniteScroll, and standalone HTTP requests via useHttp. - Use Case: When adding a dashboard page to a Laravel + Vue app, use this Skill to render deferred stats with skeleton states, poll for live metrics, and submit forms with optimistic updates. ## Quick Start Ask the AI to create an Inertia Vue page component with a form that submits to a Laravel route and handles validation errors.

Frequently Asked Questions about inertia-vue-development

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

FAQPage Schema
How do I create a form in Inertia Vue?▼

Use the <Form> component with action and method attributes for the recommended approach, accessing errors and processing state via the default slot. For more programmatic control, use the useForm composable and call form.post() with your data.

How do I navigate between pages in Inertia Vue?▼

Use the <Link> component from @inertiajs/vue3 instead of standard <a> tags to preserve SPA behavior. For programmatic navigation, call router.visit() with the target URL and optional method, data, and callbacks.

What is the difference between useForm and useHttp in Inertia v3?▼

useForm submits data as Inertia visits that trigger page updates, while useHttp makes standalone JSON requests to plain endpoints without triggering an Inertia page visit. Both share a similar API with processing states and error handling.

How do deferred props work in Inertia Vue?▼

Deferred props load after the initial page render, so the component must handle an undefined state, typically with a skeleton loading UI. Once the background request completes, the prop populates and the real content renders.

What breaking changes exist in Inertia v3 for the router?▼

router.cancel() was replaced by router.cancelAll() in v3. The invalid and exception events were renamed to httpException and networkError, so event listeners using the old names must be updated.

When should I use WhenVisible or InfiniteScroll in Inertia?▼

Use WhenVisible to lazy-load a prop when an element scrolls into view, ideal for expensive below-the-fold data. Use InfiniteScroll for paginated lists, which requires the server to return data via Inertia::scroll().