F
Filament2mo ago
jono

Poll Entire page

I have a Job table and a JobDetails table. In filament, there is a JobResource and a JobDetailsRelationManager. This means that the Job view page shows an infolist for the Job and a table for all the JobDetails. This all works correctly. However, I would like the entire page to poll every [10] seconds if the Job status is pending. I can easily get the infolist to poll using the following code, but how do I apply this to the JobDetails as well?
->extraAttributes(
fn ($record) => $record->status === JobStatus::Pending
? ['wire:poll.10s' => '']
: []
),
->extraAttributes(
fn ($record) => $record->status === JobStatus::Pending
? ['wire:poll.10s' => '']
: []
),
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?