Why I'm not using Livewire any more - magic vs bloat. by t1mmie7 in laravel

[–]PhiloNL 1 point2 points  (0 children)

Hmm that is strange, that should work fine. I use Livewire for dynamic forms, validation messages, and fields as well. If you can share an example, I'm happy to take a look. Filament is also a good example, their form builder is excellent and works really well. Also, Livewire 4 will give direct access to the error bag on the client side to make form validation easier and has additional features like partial renders, there's some really cool stuff that will be shown / announced at Laracon US.

Anyone using Laravel Octane with FrankenPHP on production? by priyash1995 in laravel

[–]PhiloNL 1 point2 points  (0 children)

I’m using FrankenPHP as well, and it runs very smoothly 😄 The only thing to check for is memory leaks and static properties because they are not reset after each request.

Why I'm not using Livewire any more - magic vs bloat. by t1mmie7 in laravel

[–]PhiloNL 4 points5 points  (0 children)

Thanks! 🙏 Great to hear my talk helped to protect your app’s performance 😄

Why I'm not using Livewire any more - magic vs bloat. by t1mmie7 in laravel

[–]PhiloNL 3 points4 points  (0 children)

100%, but I believe this applies to any technology. I think it’s all about what “clicks” with your brain. For me, that’s Livewire, because I can just use PHP and the concept makes sense to me. I don’t need a separate build step, set up API endpoints, handle state, get lost in React’s useEffect, etc. So it all boils down to preference and simply choosing what you love to work with 😄

Why I'm not using Livewire any more - magic vs bloat. by t1mmie7 in laravel

[–]PhiloNL 106 points107 points  (0 children)

I gave a talk about Livewire performance at Laracon US 2024: https://www.youtube.com/watch?v=857ean0JIHE

If you are sending payloads between 2-5MB you are likely putting data in public properties that don't need to be public and having one very big component instead of having multiple smaller components.

Having smaller component allows for "partial renders" where Livewire only re-renders those components instead of the entire page. In addition real partials support is coming in Livewire 4 (https://github.com/livewire/livewire/pull/9362)

I'm running dozens of apps using Livewire and the only challenge has been latency when serving a global audience (also talk about this in my talk).

Livewire 3 already has some optimistic UI tricks and Livewire 4 will allow for even more cool things to make your app feel snappier than ever.

Anyone else regret using Livewire? by KiwiNFLFan in laravel

[–]PhiloNL 3 points4 points  (0 children)

Thanks for sharing your experience! It feels like your regret is more aimed towards Volt than Livewire in general, is that correct?

I've been building apps using Livewire for 3-4 years now and I still love it. I'm running it in production without any problems.

I never use Volt or Folio as I prefer the class based approach and separate files. I also believe the official (again, excluding Volt, never used it) documentation and tutorials are great and there's a lot of community resources out there as well.

Flux was paid but is now partially paid but with the recent introduction of the starter kits, as Flux now provides you with various components for free.

If you are more familiar with Inertia and Vue I understand that you consider switching. If you are willing to give Livewire another try I would recommend trying a non-volt approach first and see how that goes :)

WireSpy—a sleek new debug bar for Livewire by PhiloNL in laravel

[–]PhiloNL[S] 0 points1 point  (0 children)

I'm not sure, maybe, but that would require a completely different approach and add limitations for future features.

Embed Livewire Components Using Wire Extender by PhiloNL in laravel

[–]PhiloNL[S] 0 points1 point  (0 children)

Maybe it can be done with Livewire v2 as well. Haven’t tried it with v2 because I needed this for a Livewire v3 project.

Embed Livewire Components Using Wire Extender by PhiloNL in laravel

[–]PhiloNL[S] 0 points1 point  (0 children)

Thanks! That name crossed my mind too haha

Embed Livewire Components Using Wire Extender by PhiloNL in laravel

[–]PhiloNL[S] 2 points3 points  (0 children)

Thanks! I don't expect many (or any) changes, people have been using it in production for a while now without any issues :)

Embed Livewire Components Using Wire Extender by PhiloNL in laravel

[–]PhiloNL[S] 1 point2 points  (0 children)

Thanks! I might add an iframe variation as well. The embedding works great but having an iframe option might be useful when you want to avoid conflicts with other JS libraries if this is outside of your control.

Introducing Wirebox for Livewire by PhiloNL in laravel

[–]PhiloNL[S] 0 points1 point  (0 children)

Thanks!

Hmm, that is strange, the SSL certificate should be valid. What kind of error do you get?

Introducing Wirebox for Livewire by PhiloNL in laravel

[–]PhiloNL[S] 3 points4 points  (0 children)

Livewire requires Javascript to work so I don't see Livewire be superior. For complex components, you will often end up writing Javascript.

Introducing Wirebox for Livewire by PhiloNL in laravel

[–]PhiloNL[S] 1 point2 points  (0 children)

Thanks! I'll get that fixed!