© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
leoblanski

How to update Filament View dispatching from a Livewire Component?

I've created a new component and used it inside a Filament View.

I've set up a listener on the ClientView as shown below:

protected $listeners = [
'refreshViewClient' => '$refresh'
];

And I'm calling $this->dispatch('refreshViewClient'); But for some reason, this specific component is not updating along with the entire screen.

For example, within the Header, I have a custom component where I call it as mentioned above, and it works perfectly. However, inside this particular component, it's not working.

This issue occurs whether I try to update the component -> view or view -> component; neither works.
Solution
Solved.

The problem was because I were getting my action inside another component.

So I added:

public function getEmailAction()
{
return app(SendEmailAction::class)
->mount($this->record, 'client')
->sendEmailAction()
->after(function () {
$this->dispatch('refreshActivity');
});
}
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Dispatching a livewire event from a filament action when submit
FilamentFFilament / ❓┊help
2y ago
Dispatching from app.js to Livewire
FilamentFFilament / ❓┊help
3y ago
Dispatching events from filament blade components
FilamentFFilament / ❓┊help
3y ago
Adding a page view to a Livewire component view
FilamentFFilament / ❓┊help
3y ago