Trigger refresh of another component

Hi all,

I’m a long time Laravel user and have recently started looking into Livewire. It’s a brilliant system allowing me to introduce a huge amount of dynamic content without jumping into the Vue SPA rabbit hole.

My question - is there a way that I can trigger a refresh of component X when an action is performed on component A. For example, I have a modal that allows you to create new folders. So once a folder has been created, I would like to refresh the separate folder list component that then shows the newly created folder.

Thanks,
Chris.

You can uses events, just emit the events from component A, and listen it on component X .There is also handy magic property $refresh that can be uses to refresh the component when listen to events.
For more information you can view this screencast

@farhan.hadi - brilliant - thank you very much. That’s the exact answer I needed and very useful screencast :slight_smile: