Quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.

Inertia.js retweeted
I wasn't able to make it to Laracon last week, but I am thrilled that @taylorotwell was able to share all the awesome improvements to Inertia.js that @joetannenbaum and I have been working on the last number of months. If you missed his presentation, definitely go and give it a watch! Inertia.js v2.0 is going to be *awesome*. We finally figured out the right way to handle asynchronous visits in Inertia — something I've wanted for a very long time to better handle background data reloading. The solution we landed on is so simple and elegant. If you make an async visit and the response comes back for the page you're currently on, the props are merged and your page updates. Great! Exactly what you wanted. However, if for whatever reason your async visits ends up on a *different* page, for example your session expires and you're redirected to the login page, that async visit is now "upgraded" to a standard visit, and you're brought to the login page. The `router.reload()` feature is now async by default, meaning you can technically have multiple reloads happening at once now if needed. Further, as Taylor explains in his talk, the async visit feature also enables a whole bunch of other new features, like polling, prefetching, infinite scrolling, lazy loading when scrolling into view, and deferred props. I continue to be amazed at what we can accomplish with Inertia.js, and I honestly love working with it today just as much as I did when I first released it back in 2019! youtube.com/watch?v=AwWepVU5…
13
16
216
22,171
Inertia.js retweeted
Inertia Deferred Props 🏃‍♂️ Quickly render your page for the user while Inertia gracefully fetches props in the background. Inertia's new Deferred components makes it a breeze to render beautiful loading states.
2
4
173
20,104
Inertia.js retweeted
Inertia Prefetch 🚀 Just throw "prefetch" on a Link to enable on-hover prefetching for your Inertia pages. Response times feel incredible.
1
2
154
16,429
Inertia.js retweeted
WhenVisible 🫣 Asynchronously load data when the component that uses that data becomes visible on the page. Drastically increase your initial response time. Also unlocks easy infinite scrolling in Inertia.
2
6
161
11,617
Inertia.js retweeted
Inertia Polling ⌚ The easiest way to add polling to your Inertia applications.
1
5
137
11,232
Inertia.js retweeted
Inertia 2.0 ✌️ A thorough re-write of Inertia's core wtih async requests at the foundation.
1
6
177
11,839
Inertia.js retweeted
🎉 We've been cooking up some pretty exciting things recently for Inertia.js v2.0 — @joetannenbaum has literally rewritten a decent chunk of the core router to accommodate some new features we're adding. One big goal for v2.0 is to improve the background data reloading and polling story, and I'm so pumped to share what we've come up with 🙌
39
41
398
40,694
Good progress on the (now official) @inertiajs Elixir/Phoenix adapter lately! Excited for the future of this stack. ✅ Server-side rendering ✅ Form validation helpers ✅ Lazy data evaluation ✅ Partial reloads github.com/inertiajs/inertia…
7
10
120
10,481
💁‍♂️ We released a couple updates yesterday! Inertia.js v1.2.0: improves some types and reverts a recent regression. github.com/inertiajs/inertia… Laravel adapter v1.3.0: Adds a new `Inertia::always()` prop type and also reverts another recent regression. github.com/inertiajs/inertia…
4
13
157
21,982
Inertia.js retweeted
High praise from Ryan! ☺️ Fitting feedback given that I built Inertia.js to help me as a solo dev move faster. I really wanted to create rich client-side apps with frameworks like React and Vue, but hated that I had to give up the classic controller/view approach that you get with server-side frameworks like Laravel. Everyone at the time said the way you *had* to build these kinds of apps was by building a full REST or GraphQL API. But have you ever tried building a GraphQL API before? It requires a lot of effort. I just wanted to get some data from the database like I always had and then pass it to my JavaScript-based page views. I didn't want to build an API — I wanted to use my ORM. I didn't want to use a third-party auth library — I wanted to use good old session auth like I always had. I didn't want to move everything to client-side routing — server-side routing is awesome (and in Laravel integrates beautifully with their authorization features). And I definitely didn't want two Git repos, one for my backend and one for my front-end — I wanted a monolith. Really what I wanted was an idiomatic Laravel application, except with JavaScript-based page templates and XHR-based page visits. It was from these goals that Inertia.js was born.
Digging in to inertia a bit Laravel + inertia is probably the best "single developer" stack on the market right now for general cases
19
10
225
31,281
Inertia.js retweeted
Digging in to inertia a bit Laravel + inertia is probably the best "single developer" stack on the market right now for general cases
39
53
641
305,196
Laravel 🫂 React
Hopefully this settles the debate once and for all. youtu.be/gRtv-BVkwA4
3
17
187
34,792
Inertia.js retweeted
I absolutely love both Laravel and React. Both are incredible technologies that have had a profound impact on the web. And they come together beautifully with @inertiajs ❤️ ✅ Single-page apps with server-side routing ✅ You don't need a REST/GraphQL API ✅ Pass data from controllers to page components ✅ Integrates perfectly with server-side validation ✅ Supports persistent layouts ✅ Scroll preservation ✅ XHR forms that feel like classic form submissions ✅ Make POST/PUT/PATCH/DELETE page visits ✅ Link component and programatic visits ✅ File uploads with built-in progress tracking ✅ Server-side rendering ✅ TypeScript ready ✅ No need for 3rd-party auth (sessions auth ftw!) ✅ Supports code-splitting ✅ Auto cache breaking when JS bundle changes ✅ Works with Vite and webpack ✅ ...more! In short Inertia.js allows you to build beautiful single-page apps using React, without building an API, using all the parts of Laravel (auth, Eloquent, queues, validation, etc.) that you know and love 🤝
21
30
248
36,014
For those who didn't know, @SavvyCal is an Elixir/Phoenix application. We use (and love) @inertiajs for all our React-driven pages. I finally documented and released our Inertia adapter! ✨ github.com/svycal/inertia-ph… #myelixirstatus
5
14
138
20,331
🚀 We just released v1.0.16 which fixes a TypeScript issue in the core router and also include some important fixes in the Svelte adapter for those of you using Svelte 4. github.com/inertiajs/inertia…
1
9
85
11,403
Inertia.js retweeted
New @laravelphp tshirt just arrived, gotta have the best web stack on show 😉 @inertiajs @vuejs @tailwindcss
6
3
36
4,392
🚀 We just released v0.6.11 of the Laravel adapter, which adds the ability to use bun when running the SSR server via a new `runtime` CLI option: `php artisan inertia:start-ssr --runtime=bun` github.com/inertiajs/inertia…
10
51
20,915
🚀 We just released v1.0.13: - Fixed an issue in form helper where errors where not being cleared when calling `form.reset()` - Fixed the `Link` types in the React adapter when using a ref github.com/inertiajs/inertia…
3
7
64
9,112
Inertia.js retweeted
🌟 Still one of my favorite @inertiajs features — being able to create (button) links that use POST/POST/PATCH/DELETE
5
13
123
14,051