Full Stack Radio cover image

110: Caleb Porzio - Embracing the Backend with Livewire

Full Stack Radio

00:00

How to Set Up Event Listeners for Live Wire Components

On the front end, there's like some point where live wire kind of like comes to life and scours the DOM looking for things probably with some data attribute or something. And then you're just doing like a document dot add event listener on that particular node with like whatever that action is. So every single event listener is essentially implemented via fire and age extra quest containing the name of the action in the current state of the component. You have event listeners and you just Ajax that stuff off.

Play episode from 41:34
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app