We are thrilled to announce the stable release of Inertia 2.0, bringing significant improvements to frontend development in Laravel. This release is part of our ongoing commitment to making frontend development as seamless and productive as possible with Laravel.
Key Features of Inertia 2.0:
- Asynchronous Requests: With support for asynchronous operations, multiple requests can now occur simultaneously without interfering with each other. This feature enhances responsiveness, especially when dealing with background updates or form submissions.
- Deferred Props: Load non-critical data after the initial page render, which helps improve Core Web Vitals like Largest Contentful Paint.
- Prefetching: Fetch data for upcoming pages in the background, enhancing perceived performance.
- Polling: Keep your UI in sync with server state, with automatic data refreshing.
To learn more about these new features and how to upgrade to Inertia 2.0, check out the Upgrade Guide.
What's New in Inertia 2.0?
At the heart of Inertia 2.0 is a completely rewritten request handling system, enabling asynchronous operations and opening up new possibilities. This change maintains Inertia’s integration with Laravel and popular frontend frameworks like React, Vue, and Svelte.
Asynchronous Requests
Inertia 2.0 allows requests to happen asynchronously, enabling smooth user experiences by allowing multiple requests to be processed without canceling each other.
Deferred Props
Data that's not immediately needed can be loaded after the initial page render, making apps faster and more responsive.
Prefetching
Pages can be preloaded while the user is still interacting with the current page, improving load times when navigating between pages.
Polling
The polling feature automatically keeps your app in sync with the server, with smart polling control, including throttling when browser tabs are inactive.
Getting Started with Inertia 2.0
Upgrading to Inertia 2.0 is easy, and there are no breaking changes between 1.x and 2.0. To get started, visit the Inertia Docs for a step-by-step upgrade guide.
What’s Next?
Inertia 2.1 is already in development, promising even more features like infinite scrolling. Stay tuned for more exciting updates from Inertia.
For feedback, reach out to us on Twitter or join the Laravel Discord.
Joe Tannenbaum
Open Source Engineering Lead at Laravel
Related Resources
- Laravel Forge: Effortless Server Management for Laravel
- Tinkerwell: Instant Code Feedback for Laravel
- No Compromises: Laravel Development Expertise