Trigger livewire form outside element

Cannot get livewire to function because I cannot call it from outside the element

I have a comonent that displays a list and has dynamic list elements.

I want an outside event to trigger a refresh on the livewire component.

The documentation is very unclear to me since it seems to be purely focuessed on massive elements containing all the buttons events etc.

Is it simply not possible to refresh from outside the component?

JS: window.livewire.emit('refreshComponent')
Component: protected $listeners = ['refreshComponent' => '$refresh'];


1 Like

Thanks, I’ve seen those actions but couldn’t find the refresh method.

$refresh is a little magical…

Eitherway much obliged, this is exactly what I missed!