How to Disable Table Polling in a Header Action on a Resource List Page?
I'm working with Filament and trying to disable polling for a resource table when a header action is triggered. However, my approach doesn't seem to work.
Here’s my setup:
In
MyResource
MyResource
, I define the table with polling enabled:
public static function table(Table $table): Table{ return $table ->defaultSort('created_at', 'desc') ->poll('5s') ->columns([ ... ]) ...}
public static function table(Table $table): Table{ return $table ->defaultSort('created_at', 'desc') ->poll('5s') ->columns([ ... ]) ...}
In
MyResourceListPage
MyResourceListPage
, I try to disable polling within a header action: