Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Announcing Inertia 2.0: Redefining Frontend Development for Laravel

    Announcing Inertia 2.0: Redefining Frontend Development for Laravel

    December 20, 2024

    Announcing Inertia 2.0: Redefining Frontend Development for Laravel

    We’re excited to announce the stable release of Inertia 2.0, bringing significant improvements to how you build software with Laravel. This release is part of our continued investment in making the frontend development experience with Laravel as productive and enjoyable as possible.

    New features in Inertia 2.0 include async requests, deferred props, prefetching, polling. Follow this guide to upgrade. For a quick overview, check out Josh Cirre’s 3 minute video walk through.

    Inertia was created so backend developers can easily use popular frontend frameworks such as React, Vue, and Svelte without needing to build an API. Inertia acts as a bridge between your server-side application and your JavaScript frontend, enabling you to build single-page applications while still enjoying Laravel’s robust server-side routing and ORM.

    What’s New in Inertia 2.0

    At the core of Inertia 2.0 is a completely rewritten request handling layer that enables asynchronous requests. This foundational change unlocks several powerful new features while maintaining Inertia’s seamless integration between Laravel backends and the frontend frameworks React, Vue, and Svelte.

    Asynchronous Requests

    Previously, all Inertia requests were synchronous. With 2.0, you now have full support for asynchronous operations, opening new possibilities for building responsive interfaces.

    The new async request system allows multiple requests to happen simultaneously without canceling each other. For example, the existing reload method is now async by default, providing a more fluid user experience, especially when dealing with background data updates or form submissions.

    // Disables progress indicator
    // Doesn’t cancel other outgoing requests
    router.reload({ only: ['users'] })
    

    Async requests enable features like lazy loading via the WhenVisible component, which optimizes initial page load times by deferring data fetching until components are actually visible to the user.

    Deferred Props

    Load non-critical data after the initial page render, reducing time to first byte in your applications, improving Core Web Vitals like Largest Contentful Paint. Applications with the following attributes will especially benefit:

    • Pages with expensive database queries
    • Sections requiring external API calls
    • Large data sets that aren’t immediately visible
    • Components consuming multiple data sources

    Prefetching

    Prefetch data for pages that are likely to be visited next. This can be useful for improving the perceived performance of your app by allowing the data to be fetched in the background while the user is still interacting with the current page.

    • Hover prefetching: Pages are prefetched when users hover over links, making them load instantly when clicked
    • Mount prefetching: Pages can be prefetched as soon as the original page loads
    • Stale-while-revalidate pattern: Pages can be served instantly from cache and then gracefully updated with fresh data in the background

    Polling

    Keep your UI in sync with server state using the new polling helpers. The usePoll helper makes it simple to implement automatic data refreshing with smart features like:

    • Automatic start/stop when components mount/unmount
    • Throttling when browser tabs are inactive
    • Manual polling control with start/stop callbacks
    • Configurable polling intervals

    Getting Started

    We’ve made upgrading as smooth as possible with virtually no breaking changes between Inertia 1.x and 2.0.

    Check out our Upgrade Guide for detailed information about these new features and how to implement them in your app.

    What’s Next

    This release is just the beginning. We’re already working on Inertia 2.1, which will introduce infinite scrolling capabilities and other exciting features. Stay tuned for more updates.

    Feedback on our docs, 2.0, or anything else Inertia? Let us know at @laravelphp & @inertiajs. For peer support, join the Laravel Discord and post in #help.


    The post Announcing Inertia 2.0: Redefining Frontend Development for Laravel appeared first on Laravel News.

    Join the Laravel Newsletter to get all the latest
    Laravel articles like this directly in your inbox.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleAutomated API documentation of Laravel API resources
    Next Article Laravel VS Code Extension Public Beta

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-40906 – MongoDB BSON Serialization BSON::XS Multiple Vulnerabilities

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Apple Shareholders Reject Anti-DEI Proposal, But Legal Pressure May Force Changes

    News & Updates

    Not content with ads in the Start menu, File Explorer, and Settings app, Microsoft is working on (even more) ads in Windows 11’s Weather app

    Development

    Half-Life’s ‘G-Man’ actor Mike Shapiro drops a cryptic post that’s begging to be Half-Life 3

    Development

    Is Our World Losing Its Color?

    Development
    Hostinger

    Highlights

    Development

    Sitecore Personalize: Close Event Logic

    July 1, 2024

    Sitecore Personalize has several out of the box components that notify the user such as…

    AsyncRAT Campaign Uses Python Payloads and TryCloudflare Tunnels for Stealth Attacks

    February 5, 2025

    How to Automate Insurance Claims Processing

    August 19, 2024

    Rilasciati GNOME 46.9 e GNOME 47.4: Aggiornamenti di Manutenzione con Miglioramenti e Correzioni

    February 17, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.