Optimistic UI but in Laravel Livewire

Опубликовано: 20 Май 2026
на канале: Josh Cirre
4,955
209

It's nice to not have to show loading spinners when you know what a user EXPECTS to happen. So, how do we do something like that in Laravel Livewire? And how do we do it without touching JavaScript? 👀

Spoiler: It's wire:loading

00:00 Optimistic UI?
01:43 What you expect
04:29 Diving into the code
06:38 The wire:loading solution
09:22 Does it break?
11:32 Caleb's challenge

Help me choose my next video:
https://cir.re/suggest

Links:
Caleb's Optimistic UI Teaser Video: https://x.com/calebporzio/status/1775...
Laravel Livewire wire:loading Docs: https://livewire.laravel.com/docs/wir...

Keep creating.

---
📹 *Watch My VSCode Setup Video:*    • My Minimal and Beautiful VSCode Setup  

🎓 *Make VSCode Awesome – Caleb Porzio's Course (support me with this link):* https://gumroad.com/a/636621331