What’s New
Inertia.js v3.0 is a major release focused on simplicity and developer experience. Axios has been replaced with a built-in XHR client for a smaller bundle, SSR now works out of the box during development without a separate Node.js server, and the new@inertiajs/vite plugin handles page resolution and SSR configuration automatically. This release also introduces standalone HTTP requests via the useHttp hook, optimistic updates with automatic rollback, layout props for sharing data between pages and layouts, and improved exception handling.
Vite Plugin
Automatic page resolution, SSR setup, and optional setup/resolve callbacks.
HTTP Requests
Make standalone HTTP requests with the useHttp hook, without triggering page visits.
Optimistic Updates
Apply data changes instantly before the server responds, with automatic rollback on failure.
Layout Props
Share dynamic data between pages and persistent layouts with the useLayoutProps hook.
Simplified SSR
SSR works automatically in Vite dev mode. No separate Node.js server needed.
Exception Handling
Render custom Inertia error pages directly from your exception handler, with shared data.
- Instant visits that swap to the target component before the server responds
- Form component generics for type-safe errors and slot props
- Disable SSR per-route via middleware or facade
- Improved SSR error messages with component names, URLs, and actionable hints
- Enum support in
Inertia::render()responses - Page object in resolve callback for context-aware component resolution
- Built-in HTTP interceptors without Axios
- Default layout option in
createInertiaApp preserveErrorsoption to preserve validation errors during partial reloads
Upgrade Dependencies
To upgrade to Inertia.js v3.0, first use npm to install the client-side adapter of your choice:pages shorthand for component resolution:
inertiajs/inertia-laravel package:
@inertia Blade directive output has changed:
Breaking Changes
Requirements
PHP 8.2+ and Laravel 11+
The Laravel adapter now requires PHP 8.2 and Laravel 11 at a minimum.React 19+
The React adapter now requires React 19. React 18 and below are no longer supported.Svelte 5+
The Svelte adapter now requires Svelte 5. Svelte 4 and below are no longer supported. All Svelte code should be updated to use the Svelte 5 runes syntax ($props(), $state(), $effect(), etc).
Axios Removed
Inertia no longer ships with or requires Axios. For most applications, this requires no changes. The built-in XHR client supports interceptors as well, so Axios interceptors may be migrated directly. You may also continue using Axios via the Axios adapter, or provide a fully custom HTTP client.qs Dependency Removed
The qs package has been replaced with a built-in query string implementation and is no longer included as a dependency of @inertiajs/core. Inertia’s internal query string handling remains the same, but you should install qs directly if your application imports it.
Event Renames
Two global events have been renamed for clarity:| v2 Name | v3 Name | Document Event |
|---|---|---|
invalid | httpException | inertia:httpException |
exception | networkError | inertia:networkError |
onHttpException and onNetworkError callbacks:
router.cancel() Replaced
The router.cancel() method has been replaced by router.cancelAll(), which provides granular control over which request types to cancel:
Future Options Removed
Thefuture configuration namespace has been removed. All four future options from v2 are now always enabled and no longer configurable:
future.preserveEqualPropsfuture.useDataInertiaHeadAttributefuture.useDialogForErrorModalfuture.useScriptElementForInitialPage
<script type="application/json"> element. The legacy data-page attribute approach is no longer supported.
Progress Indicator Exports Removed
The named exportshideProgress() and revealProgress() have been removed. If needed, use the progress object directly:
Deferred Component Behavior (React)
The React<Deferred> component no longer resets to show the fallback during partial reloads. Previously, the fallback was shown each time a partial reload was triggered. Now the existing content remains visible while new data loads, consistent with the Vue and Svelte behavior.
A new reloading slot prop is available across all adapters, allowing you to show a loading indicator during partial reloads while keeping the existing content visible. See the deferred props documentation for details.
Form Processing Reset Timing
TheuseForm helper now only resets processing and progress state in the onFinish callback, rather than immediately upon receiving a response. This ensures the processing state remains true until the visit is fully complete.
LazyProp Removed
TheInertia::lazy() method and LazyProp class, deprecated in v2, have been removed. Use Inertia::optional() instead, which provides the same functionality:
Config File Restructuring
The Laravel configuration file has been restructured. Page-related settings are now nested underpages, and the testing section has been simplified:
Testing Concerns Removed
The deprecatedInertia\Testing\Concerns\Has, Inertia\Testing\Concerns\Matching, and Inertia\Testing\Concerns\Debugging traits have been removed. These traits were deprecated in v1 and replaced by the AssertableInertia class. No action is required unless your application references these traits directly.
Other Changes
SSR in Development
When using the new@inertiajs/vite plugin, SSR works automatically during development by simply running npm run dev. You no longer need to build your SSR bundle with vite build --ssr or start a separate Node.js server with php artisan inertia:start-ssr during development. These commands are now only required for production deployments.
Middleware Priority
The Inertia middleware is now automatically registered in Laravel’s middleware priority list, ensuring it runs before middleware likeThrottleRequests. This fixes an issue where PUT/PATCH/DELETE requests that were rate-limited could receive a 302 redirect instead of the correct 303, causing the browser to retry the original request method on the redirect target. No action is required.
Nested Prop Types
Prop types likeInertia::optional(), Inertia::defer(), and Inertia::merge() now work inside closures and nested arrays. Inertia resolves them at any depth and uses dot-notation paths in partial reload metadata.
only and except options, as well as the Deferred and WhenVisible components, all support dot-notation for targeting nested props.
ProvidesInertiaProperties interface also work at any nesting level.
ESM-Only Packages
All Inertia packages now ship as ES Modules only. CommonJSrequire() imports are no longer supported. You should update any require() calls to use import statements instead.
Page Object Changes
TheclearHistory and encryptHistory properties in the page object are now optional and only included in the response when true. Previously, every response included "clearHistory": false and "encryptHistory": false even when history wasn’t being cleared or encrypted.