Lemme show you what's good in Livewire 3.4
- Get link
- X
- Other Apps
Hey Livewire buds,
Big news: we finally got to "inbox zero" on the Livewire & Alpine repositories. Weeeooo!
This is a big moment for me, because I haven't felt "on-top" of the open source side of things since releasing V3.
And with that of course, is a big fat new Livewire release: 3.4.0
It's mostly bug-fixes and tweaks, but here are a few new features and changes you might want to know about:
New #[Session] attribute
You can now persist values between pages using the new #[Session] attribute. This is useful for remembering certain customizations a user makes, like showing/hiding certain columns in a table.
Just plop #[Session] above a Livewire property, and now that property will be stored and retrieved out of the user's session in your Laravel app.
Inheritable attributes
This is a good one. If you use different Blade layouts in your app and are sick of configuring them in individual components, I have good news for you.
You can now set Livewire class-level attributes in parent classes of components. This way you can create "base components" for different layouts and extend them appropriately.
Top-level #[On]
Here's a little random thing: If you want to refresh an entire component when a specific event is fired, you can now do that by placing #[On] above the component's class itself (rather than attaching it to a specific method).
Pagination without URL tracking
If you want to use Livewire's pagination (provided by the WithPagination trait) but DON'T want Livewire to add "?page=" to the URL, there's a new WithoutUrlPagination trait you can add.
Cancel file uploads
You can now cancel file uploads if one is taking too long. This is helpful for users who want to bail out of a long upload.
Signing off
So there ya go! I didn't even mention the 50+ bug-fixes contained in this release.
Side note: I'm trying to be more communicative and involved in the community, so expect to hear more from me about new Livewire updates and other random crap you may or may not care about.
Thanks for loving Livewire,
Caleb
- Get link
- X
- Other Apps
Comments
Post a Comment