3 ms·
Maybe you mixed up Inertia.js [0] with Livewire [1]? I've worked with Livewire quite a bit and think it's a brilliant concept. It's very easy to get started an
by vincent_s 5y ago
Maybe you mixed up Inertia.js [0] with Livewire [1]?
I've worked with Livewire quite a bit and think it's a brilliant concept. It's very easy to get started and you get great results without much training.
However, as soon as you encounter problems or want to implement things that deviate from the standard case, you quickly realize that this is a new technology. There isn't a solution for every problem on Stackoverflow and apart from the official documentation there is very little good information.
So for complex apps, it's often better to go with VueJS which has a better and more comprehensive ecosystem. The great thing is that Inertia.js exists as a link to Laravel, so you don't have to build an API and you don't have to worry about things like routing or authentication.
[0] https://inertiajs.com/ https://inertiajs.com/
[1] https://laravel-livewire.com/ https://laravel-livewire.com/
Edit: Add more background
- midrus 5y agoI'm curious about this. Can you share any specific problem you had and couldn't find a solution for?
- vincent_s 5y agoI don't remember exactly. I was missing a very specific feature and didn't find any information about it in the documentation or elsewhere, although it's probably a frequently requested issue. Only after a long search did I find a hint in the Github discussions that led me to the solution. For similar problems with more established technologies, you can usually find a blog post or a Stackoverflow post about such things within a very short time, often even with a code example that you can copy and paste. With Livewire, this is often not the case. Edit: To be clear, there was a solution, a very good one indeed. It was just hard to find.
- midrus 5y agoThe problem with these generic explanations is that we can't know if it was a real issue with the tool, if it was a misunderstanding of how to use it from your side, a problem with documentation, a third party plugin, etc. This is like saying "React is bad because once I had a problem I don't remember".
- lambdaba 5y agoI'm aware Inertia.js is the odd one out of the bunch, it still allows the server to do most of the work.
- vincent_s 5y agoYes, as I was writing my comment, I realized that Inertia.js does kind of fit in. Only then you really can't call the whole thing JS-free anymore.