ToastMagic v1.0.3 Release Notes — Livewire Support Enhanced
✨ What's Fixed
-
Livewire Script Path Issues Resolved:
Fixed loading problems with Livewire v3 JavaScript assets to ensure correct path resolution and smooth integration. -
Robust Fallbacks for Livewire Scripts:
Improved fallback logic for loading core toaster scripts when Livewire assets are unavailable, preventing broken toast notifications.
🚀 Improvements
-
Full Livewire v3 Support Added:
Seamless integration with Livewire v3 via$this->dispatch('toastMagic', ...)
for easy toast notifications directly from Livewire components. -
Configurable Livewire Settings:
New configuration options'livewire_enabled' => true
and'livewire_version' => 'v3'
allow developers to toggle and specify Livewire versions with ease. -
Enhanced Developer Experience for Livewire Users:
Improved asset loading and event dispatching designed to work flawlessly with Livewire’s lifecycle and script management.