wire:poll on full infolist page

Hi all I've got an infolist page which includes statuses and real time logs. Everything on the page needs to be refreshed every 5 seconds. Is there a way of adding wire:poll to the entire page? I can make my custom components poll but can't figure out how to refresh the default Filament components (Section, TextEntry etc).
Solution:
Try using extraAttributes
Jump to solution
5 Replies
Solution
krekas
krekas10mo ago
Try using extraAttributes
binaryfire
binaryfire10mo ago
@krekas Thanks, that works. In case anyone else needs this:
TextEntry::make('total')
->extraAttributes(['wire:poll.5s' => ''])
TextEntry::make('total')
->extraAttributes(['wire:poll.5s' => ''])
krekas
krekas10mo ago
but it will poll every entry. maybe better add it on section?
binaryfire
binaryfire10mo ago
Yeah I thought of that, but Livewire 3's network batching seems to be working well. I've put it on 4 different entries and it's only sending a single request per 5s
krekas
krekas10mo ago
cool