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
krekas15mo ago
Try using extraAttributes
binaryfire
binaryfireOP15mo 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
krekas15mo ago
but it will poll every entry. maybe better add it on section?
binaryfire
binaryfireOP15mo 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
krekas15mo ago
cool
Want results from more Discord servers?
Add your server