Refresh table from an echo event
Is there a way out of the box to listen for echo events on a table and have the table refresh when that event fires? What i'm trying to achieve is only when a record thats visible in the table or new is updated/created it causes a table to refresh.
https://filamentphp.com/docs/3.x/tables/advanced#polling-table-content
6 Replies
are you using admin panel?
ye
v3
maybe you can register an event on the ListPage
Listen for echo events and dispatch using
@this.$dispatch('update-list')
https://livewire.laravel.com/docs/events#dispatching-livewire-events-from-script-tagsLaravel
Events | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
ah true, is ListPage a full livewire component?
guess i havent read the docs thoroughly enough π
yes, pages are livewire components
Solution
sweet! makes sense then